Lines Matching refs:EmitInstruction
191 EmitInstruction(Out, MCInstBuilder(X86::REP_PREFIX)); in InstrumentAndEmitInstruction()
197 EmitInstruction(Out, Inst); in InstrumentAndEmitInstruction()
242 EmitInstruction(Out, Inst); in EmitLEA()
511 EmitInstruction(Out, MCInstBuilder(X86::PUSH32r).addReg(Reg)); in SpillReg()
516 EmitInstruction(Out, MCInstBuilder(X86::POP32r).addReg(Reg)); in RestoreReg()
521 EmitInstruction(Out, MCInstBuilder(X86::PUSHF32)); in StoreFlags()
526 EmitInstruction(Out, MCInstBuilder(X86::POPF32)); in RestoreFlags()
545 EmitInstruction( in InstrumentMemOperandPrologue()
597 EmitInstruction(Out, MCInstBuilder(X86::CLD)); in EmitCallAsanReport()
598 EmitInstruction(Out, MCInstBuilder(X86::MMX_EMMS)); in EmitCallAsanReport()
600 EmitInstruction(Out, MCInstBuilder(X86::AND64ri8) in EmitCallAsanReport()
604 EmitInstruction( in EmitCallAsanReport()
612 EmitInstruction(Out, MCInstBuilder(X86::CALLpcrel32).addExpr(FnExpr)); in EmitCallAsanReport()
628 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ShadowRegI32).addReg( in InstrumentMemOperandSmall()
630 EmitInstruction(Out, MCInstBuilder(X86::SHR32ri) in InstrumentMemOperandSmall()
644 EmitInstruction(Out, Inst); in InstrumentMemOperandSmall()
647 EmitInstruction( in InstrumentMemOperandSmall()
651 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
653 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
655 EmitInstruction(Out, MCInstBuilder(X86::AND32ri) in InstrumentMemOperandSmall()
673 EmitInstruction(Out, MCInstBuilder(X86::ADD32ri8) in InstrumentMemOperandSmall()
680 EmitInstruction( in InstrumentMemOperandSmall()
683 EmitInstruction(Out, MCInstBuilder(X86::CMP32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
685 EmitInstruction(Out, MCInstBuilder(X86::JL_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
699 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ShadowRegI32).addReg( in InstrumentMemOperandLarge()
701 EmitInstruction(Out, MCInstBuilder(X86::SHR32ri) in InstrumentMemOperandLarge()
722 EmitInstruction(Out, Inst); in InstrumentMemOperandLarge()
726 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandLarge()
740 EmitInstruction( in InstrumentMOVSImpl()
742 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMOVSImpl()
769 EmitInstruction(Out, MCInstBuilder(X86::PUSH64r).addReg(Reg)); in SpillReg()
774 EmitInstruction(Out, MCInstBuilder(X86::POP64r).addReg(Reg)); in RestoreReg()
779 EmitInstruction(Out, MCInstBuilder(X86::PUSHF64)); in StoreFlags()
784 EmitInstruction(Out, MCInstBuilder(X86::POPF64)); in RestoreFlags()
803 EmitInstruction( in InstrumentMemOperandPrologue()
866 EmitInstruction(Out, MCInstBuilder(X86::CLD)); in EmitCallAsanReport()
867 EmitInstruction(Out, MCInstBuilder(X86::MMX_EMMS)); in EmitCallAsanReport()
869 EmitInstruction(Out, MCInstBuilder(X86::AND64ri8) in EmitCallAsanReport()
875 EmitInstruction(Out, MCInstBuilder(X86::MOV64rr).addReg(X86::RDI).addReg( in EmitCallAsanReport()
883 EmitInstruction(Out, MCInstBuilder(X86::CALL64pcrel32).addExpr(FnExpr)); in EmitCallAsanReport()
901 EmitInstruction(Out, MCInstBuilder(X86::MOV64rr).addReg(ShadowRegI64).addReg( in InstrumentMemOperandSmall()
903 EmitInstruction(Out, MCInstBuilder(X86::SHR64ri) in InstrumentMemOperandSmall()
916 EmitInstruction(Out, Inst); in InstrumentMemOperandSmall()
919 EmitInstruction( in InstrumentMemOperandSmall()
923 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
925 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
927 EmitInstruction(Out, MCInstBuilder(X86::AND32ri) in InstrumentMemOperandSmall()
945 EmitInstruction(Out, MCInstBuilder(X86::ADD32ri8) in InstrumentMemOperandSmall()
952 EmitInstruction( in InstrumentMemOperandSmall()
955 EmitInstruction(Out, MCInstBuilder(X86::CMP32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
957 EmitInstruction(Out, MCInstBuilder(X86::JL_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
971 EmitInstruction(Out, MCInstBuilder(X86::MOV64rr).addReg(ShadowRegI64).addReg( in InstrumentMemOperandLarge()
973 EmitInstruction(Out, MCInstBuilder(X86::SHR64ri) in InstrumentMemOperandLarge()
994 EmitInstruction(Out, Inst); in InstrumentMemOperandLarge()
999 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandLarge()
1013 EmitInstruction( in InstrumentMOVSImpl()
1015 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMOVSImpl()
1035 EmitInstruction(Out, Inst); in InstrumentAndEmitInstruction()
1038 void X86AsmInstrumentation::EmitInstruction(MCStreamer &Out, in EmitInstruction() function in llvm::X86AsmInstrumentation
1040 Out.EmitInstruction(Inst, *STI); in EmitInstruction()