diff options
author | Ningxin Hu <ningxin.hu@intel.com> | 2014-05-28 13:49:45 +0800 |
---|---|---|
committer | Ningxin Hu <ningxin.hu@intel.com> | 2014-05-28 13:49:45 +0800 |
commit | 15d99676eab57642a2bb4b775ef605ac96a9eac1 (patch) | |
tree | 795eadc4ac18694bd6f90cf895b4faa7bf442098 /src/parseTools.js | |
parent | d8bd3d5c2af979341e3ca4293dcc508f3e6bbca8 (diff) |
Move float32x4 and int32x4 constructors into SIMD module.
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 0c413afa..ececf477 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -2035,7 +2035,7 @@ function finalizeLLVMParameter(param, noIndexizeFunctions) { } else if (param.intertype == 'mathop') { return processMathop(param); } else if (param.intertype === 'vector') { - return getVectorBaseType(param.type) + '32x4(' + param.idents.join(',') + ')'; + return 'SIMD.' + getVectorBaseType(param.type) + '32x4(' + param.idents.join(',') + ')'; } else { throw 'invalid llvm parameter: ' + param.intertype; } @@ -2700,7 +2700,7 @@ var simdLane = ['x', 'y', 'z', 'w']; function ensureVector(ident, base) { Types.usesSIMD = true; - return ident == 0 ? base + '32x4.splat(0)' : ident; + return ident == 0 ? 'SIMD.' + base + '32x4.splat(0)' : ident; } function ensureValidFFIType(type) { |