Permalink
Browse files

Remove volatile load/store.

  • Loading branch information...
sletz committed Sep 9, 2017
1 parent 7d24aa3 commit cf6011026aa75dfd0f88e051da271ce0c0d525a9
Showing with 2 additions and 4 deletions.
  1. +2 −4 Source/Runtime/LLVMEmitIR.cpp
@@ -122,7 +122,7 @@ namespace LLVMJIT
, functionInstance(inFunctionInstance)
, llvmFunction(inLLVMFunction)
, irBuilder(context)
{}
{}
void emit();
@@ -784,7 +784,6 @@ namespace LLVMJIT
auto pointer = coerceByteIndexToPointer(byteIndex,imm.offset,llvmMemoryType); \
auto load = irBuilder.CreateLoad(pointer); \
load->setAlignment(1<<imm.alignmentLog2); \
load->setVolatile(true); \
push(conversionOp(load,asLLVMType(ValueType::valueTypeId))); \
}
#define EMIT_STORE_OP(valueTypeId,name,llvmMemoryType,naturalAlignmentLog2,conversionOp) \
@@ -795,7 +794,6 @@ namespace LLVMJIT
auto pointer = coerceByteIndexToPointer(byteIndex,imm.offset,llvmMemoryType); \
auto memoryValue = conversionOp(value,llvmMemoryType); \
auto store = irBuilder.CreateStore(memoryValue,pointer); \
store->setVolatile(true); \
store->setAlignment(1<<imm.alignmentLog2); \
}
@@ -1634,4 +1632,4 @@ namespace LLVMJIT
{
return EmitModuleContext(module,moduleInstance).emit();
}
}
}

0 comments on commit cf60110

Please sign in to comment.