Displaying 3 results from an estimated 3 matches for "addrspacecastinst".
2015 Mar 16
4
[LLVMdev] possible addrspacecast problem
...------ 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->getOperand(0), DL, Visited);
// If we don't kn...
2015 Jan 17
2
[LLVMdev] How to test isDereferenceablePointer?
...gh 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?
...= 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 list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/ma...