diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-18 18:07:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-18 18:07:11 -0800 |
commit | 4a98beb9635946c2de45ae6987a6153d790292bb (patch) | |
tree | 808de337543a5a2aede0eccc9dc50f2dcf6320a6 /src/modules.js | |
parent | 991e5c6a3ee144c6ee6193208446f28ce9def60d (diff) |
detect correct type of all LLVM conversions
Diffstat (limited to 'src/modules.js')
-rw-r--r-- | src/modules.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.js b/src/modules.js index d517ac70..5e2b324e 100644 --- a/src/modules.js +++ b/src/modules.js @@ -16,6 +16,7 @@ var LLVM = { PHI_REACHERS: set('branch', 'switch', 'invoke', 'indirectbr'), EXTENDS: set('sext', 'zext'), COMPS: set('icmp', 'fcmp'), + CONVERSIONS: set('inttoptr', 'ptrtoint', 'uitofp', 'sitofp', 'fptosi', 'fptoui'), INTRINSICS_32: set('_llvm_memcpy_p0i8_p0i8_i64', '_llvm_memmove_p0i8_p0i8_i64', '_llvm_memset_p0i8_i64'), // intrinsics that need args converted to i32 in USE_TYPED_ARRAYS == 2 }; LLVM.GLOBAL_MODIFIERS = set(keys(LLVM.LINKAGES).concat(['constant', 'global', 'hidden'])); |