search for: derivedptr

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

2015 Jan 17
2
[LLVMdev] How to test isDereferenceablePointer?
...urn 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?
...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); > > _______________________________________________ > LLVM Developers mailing li...
2015 Mar 16
4
[LLVMdev] possible addrspacecast problem
...nts/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 isDereferenceablePointer(ASC-&g...