From 95a39e0fe58c7b95588da97b3478eafba9920281 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 4 Aug 2016 15:43:11 +0200 Subject: Extended support for assembler raising Improved support for assembler handling. Providing additional triple information to raise assembler for supported architectures only. Implemented support for raising full assembly memory fence. Added initial support for memory fences in Executor. --- lib/Core/Executor.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/Core/Executor.cpp') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index d755403f..8b885527 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -2543,9 +2543,15 @@ void Executor::executeInstruction(ExecutionState &state, KInstruction *ki) { bindLocal(ki, state, result); break; } - - // Other instructions... - // Unhandled +#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 3) + case Instruction::Fence: { + // Ignore for now + break; + } +#endif + + // Other instructions... + // Unhandled case Instruction::ExtractElement: case Instruction::InsertElement: case Instruction::ShuffleVector: -- cgit 1.4.1