Lines Matching refs:MCInstBuilder
199 EmitInstruction(Out, MCInstBuilder(X86::REP_PREFIX)); in InstrumentAndEmitInstruction()
520 EmitInstruction(Out, MCInstBuilder(X86::PUSH32r).addReg(Reg)); in SpillReg()
525 EmitInstruction(Out, MCInstBuilder(X86::POP32r).addReg(Reg)); in RestoreReg()
530 EmitInstruction(Out, MCInstBuilder(X86::PUSHF32)); in StoreFlags()
535 EmitInstruction(Out, MCInstBuilder(X86::POPF32)); in RestoreFlags()
556 MCInstBuilder(X86::MOV32rr).addReg(LocalFrameReg).addReg(FrameReg)); in InstrumentMemOperandPrologue()
606 EmitInstruction(Out, MCInstBuilder(X86::CLD)); in EmitCallAsanReport()
607 EmitInstruction(Out, MCInstBuilder(X86::MMX_EMMS)); in EmitCallAsanReport()
609 EmitInstruction(Out, MCInstBuilder(X86::AND64ri8) in EmitCallAsanReport()
614 Out, MCInstBuilder(X86::PUSH32r).addReg(RegCtx.AddressReg(MVT::i32))); in EmitCallAsanReport()
620 EmitInstruction(Out, MCInstBuilder(X86::CALLpcrel32).addExpr(FnExpr)); in EmitCallAsanReport()
636 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ShadowRegI32).addReg( in InstrumentMemOperandSmall()
638 EmitInstruction(Out, MCInstBuilder(X86::SHR32ri) in InstrumentMemOperandSmall()
656 Out, MCInstBuilder(X86::TEST8rr).addReg(ShadowRegI8).addReg(ShadowRegI8)); in InstrumentMemOperandSmall()
659 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
661 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
663 EmitInstruction(Out, MCInstBuilder(X86::AND32ri) in InstrumentMemOperandSmall()
681 EmitInstruction(Out, MCInstBuilder(X86::ADD32ri8) in InstrumentMemOperandSmall()
690 MCInstBuilder(X86::MOVSX32rr8).addReg(ShadowRegI32).addReg(ShadowRegI8)); in InstrumentMemOperandSmall()
691 EmitInstruction(Out, MCInstBuilder(X86::CMP32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
693 EmitInstruction(Out, MCInstBuilder(X86::JL_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
707 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ShadowRegI32).addReg( in InstrumentMemOperandLarge()
709 EmitInstruction(Out, MCInstBuilder(X86::SHR32ri) in InstrumentMemOperandLarge()
734 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandLarge()
749 Out, MCInstBuilder(X86::TEST32rr).addReg(X86::ECX).addReg(X86::ECX)); in InstrumentMOVSImpl()
750 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMOVSImpl()
777 EmitInstruction(Out, MCInstBuilder(X86::PUSH64r).addReg(Reg)); in SpillReg()
782 EmitInstruction(Out, MCInstBuilder(X86::POP64r).addReg(Reg)); in RestoreReg()
787 EmitInstruction(Out, MCInstBuilder(X86::PUSHF64)); in StoreFlags()
792 EmitInstruction(Out, MCInstBuilder(X86::POPF64)); in RestoreFlags()
813 MCInstBuilder(X86::MOV64rr).addReg(LocalFrameReg).addReg(FrameReg)); in InstrumentMemOperandPrologue()
874 EmitInstruction(Out, MCInstBuilder(X86::CLD)); in EmitCallAsanReport()
875 EmitInstruction(Out, MCInstBuilder(X86::MMX_EMMS)); in EmitCallAsanReport()
877 EmitInstruction(Out, MCInstBuilder(X86::AND64ri8) in EmitCallAsanReport()
883 EmitInstruction(Out, MCInstBuilder(X86::MOV64rr).addReg(X86::RDI).addReg( in EmitCallAsanReport()
890 EmitInstruction(Out, MCInstBuilder(X86::CALL64pcrel32).addExpr(FnExpr)); in EmitCallAsanReport()
908 EmitInstruction(Out, MCInstBuilder(X86::MOV64rr).addReg(ShadowRegI64).addReg( in InstrumentMemOperandSmall()
910 EmitInstruction(Out, MCInstBuilder(X86::SHR64ri) in InstrumentMemOperandSmall()
927 Out, MCInstBuilder(X86::TEST8rr).addReg(ShadowRegI8).addReg(ShadowRegI8)); in InstrumentMemOperandSmall()
930 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
932 EmitInstruction(Out, MCInstBuilder(X86::MOV32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
934 EmitInstruction(Out, MCInstBuilder(X86::AND32ri) in InstrumentMemOperandSmall()
952 EmitInstruction(Out, MCInstBuilder(X86::ADD32ri8) in InstrumentMemOperandSmall()
961 MCInstBuilder(X86::MOVSX32rr8).addReg(ShadowRegI32).addReg(ShadowRegI8)); in InstrumentMemOperandSmall()
962 EmitInstruction(Out, MCInstBuilder(X86::CMP32rr).addReg(ScratchRegI32).addReg( in InstrumentMemOperandSmall()
964 EmitInstruction(Out, MCInstBuilder(X86::JL_1).addExpr(DoneExpr)); in InstrumentMemOperandSmall()
978 EmitInstruction(Out, MCInstBuilder(X86::MOV64rr).addReg(ShadowRegI64).addReg( in InstrumentMemOperandLarge()
980 EmitInstruction(Out, MCInstBuilder(X86::SHR64ri) in InstrumentMemOperandLarge()
1006 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMemOperandLarge()
1021 Out, MCInstBuilder(X86::TEST64rr).addReg(X86::RCX).addReg(X86::RCX)); in InstrumentMOVSImpl()
1022 EmitInstruction(Out, MCInstBuilder(X86::JE_1).addExpr(DoneExpr)); in InstrumentMOVSImpl()