Lines Matching refs:InsertBefore
657 void instrumentAddress(Instruction *OrigIns, Instruction *InsertBefore,
661 Instruction *InsertBefore, Value *Addr,
665 Instruction *InsertBefore, Value *Addr,
671 Instruction *generateCrashCode(Instruction *InsertBefore, Value *Addr,
1548 Instruction *InsertBefore, Value *Addr, in doInstrumentAddress() argument
1558 return Pass->instrumentAddress(I, InsertBefore, Addr, TypeSize, IsWrite, in doInstrumentAddress()
1560 Pass->instrumentUnusualSizeOrAlignment(I, InsertBefore, Addr, TypeSize, in doInstrumentAddress()
1578 Instruction *InsertBefore = I; in instrumentMaskedLoadOrStore() local
1592 InsertBefore = ThenTerm; in instrumentMaskedLoadOrStore()
1595 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore()
1598 doInstrumentAddress(Pass, I, InsertBefore, InstrumentedAddress, Alignment, in instrumentMaskedLoadOrStore()
1659 Instruction *AddressSanitizer::generateCrashCode(Instruction *InsertBefore, in generateCrashCode() argument
1664 IRBuilder<> IRB(InsertBefore); in generateCrashCode()
1706 Instruction *OrigIns, Instruction *InsertBefore, Value *Addr, in instrumentAMDGPUAddress() argument
1714 return InsertBefore; in instrumentAMDGPUAddress()
1716 IRBuilder<> IRB(InsertBefore); in instrumentAMDGPUAddress()
1723 SplitBlockAndInsertIfThen(Cmp, InsertBefore, false); in instrumentAMDGPUAddress()
1724 InsertBefore = cast<Instruction>(AddrSpaceZeroLanding); in instrumentAMDGPUAddress()
1725 return InsertBefore; in instrumentAMDGPUAddress()
1729 Instruction *InsertBefore, Value *Addr, in instrumentAddress() argument
1734 InsertBefore = instrumentAMDGPUAddress(OrigIns, InsertBefore, Addr, in instrumentAddress()
1736 if (!InsertBefore) in instrumentAddress()
1740 IRBuilder<> IRB(InsertBefore); in instrumentAddress()
1770 Cmp, InsertBefore, false, MDBuilder(*C).createBranchWeights(1, 100000)); in instrumentAddress()
1785 CrashTerm = SplitBlockAndInsertIfThen(Cmp, InsertBefore, !Recover); in instrumentAddress()
1798 Instruction *I, Instruction *InsertBefore, Value *Addr, uint32_t TypeSize, in instrumentUnusualSizeOrAlignment() argument
1800 IRBuilder<> IRB(InsertBefore); in instrumentUnusualSizeOrAlignment()
1814 instrumentAddress(I, InsertBefore, Addr, 8, IsWrite, Size, false, Exp); in instrumentUnusualSizeOrAlignment()
1815 instrumentAddress(I, InsertBefore, LastByte, 8, IsWrite, Size, false, Exp); in instrumentUnusualSizeOrAlignment()