search for: relocateinst

Displaying 3 results from an estimated 3 matches for "relocateinst".

2015 Jan 17
2
[LLVMdev] How to test isDereferenceablePointer?
...DereferenceablePointer(const Value *V, const DataLayout *DL, return true; } + // For gc.relocate, look through relocations + if (const IntrinsicInst *I = dyn_cast<IntrinsicInst>(V)) + if (I->getIntrinsicID() == Intrinsic::experimental_gc_relocate) { + GCRelocateOperands RelocateInst(I); + return isDereferenceablePointer(RelocateInst.derivedPtr(), DL, Visited); + } + if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(V)) return isDereferenceablePointer(ASC->getOperand(0), DL, Visited); -- 2.2.1
2015 Jan 20
2
[LLVMdev] How to test isDereferenceablePointer?
...*V, const DataLayout *DL, >> return true; >> } >> + // For gc.relocate, look through relocations >> + if (const IntrinsicInst *I = dyn_cast<IntrinsicInst>(V)) >> + if (I->getIntrinsicID() == Intrinsic::experimental_gc_relocate) { >> + GCRelocateOperands RelocateInst(I); >> + return isDereferenceablePointer(RelocateInst.derivedPtr(), DL, >> Visited); >> + } >> + >> if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(V)) >> return isDereferenceablePointer(ASC->getOperand(0), DL, Visited); > > ________...
2015 Mar 16
4
[LLVMdev] possible addrspacecast problem
...-dev/attachments/20150315/11514899/attachment.html> -------------- next part -------------- Index: Value.cpp =================================================================== --- Value.cpp (revision 232165) +++ Value.cpp (working copy) @@ -574,8 +574,8 @@ return isDereferenceablePointer(RelocateInst.derivedPtr(), DL, Visited); } - if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(V)) - return isDereferenceablePointer(ASC->getOperand(0), DL, Visited); +// if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(V)) +// return isDereferenceablePoi...