From: Eric Christopher Date: Thu, 5 Aug 2010 20:04:36 +0000 (+0000) Subject: Handle the memory barrier pseudo that goes to nothing for the JIT. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=505656c6a2be361b9ae8ff230020fdea38886a7e;p=oota-llvm.git Handle the memory barrier pseudo that goes to nothing for the JIT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110371 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 077004cb498..4fd034e53ed 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -705,6 +705,12 @@ void Emitter::emitInstruction(const MachineInstr &MI, llvm_unreachable("psuedo instructions should be removed before code" " emission"); break; + // Do nothing for Int_MemBarrier - it's just a comment. Add a debug + // to make it slightly easier to see. + case X86::Int_MemBarrier: + DEBUG(dbgs() << "#MEMBARRIER\n"); + break; + case TargetOpcode::INLINEASM: // We allow inline assembler nodes with empty bodies - they can // implicitly define registers, which is ok for JIT. @@ -716,7 +722,7 @@ void Emitter::emitInstruction(const MachineInstr &MI, case TargetOpcode::EH_LABEL: MCE.emitLabel(MI.getOperand(0).getMCSymbol()); break; - + case TargetOpcode::IMPLICIT_DEF: case TargetOpcode::KILL: break;