Displaying 2 results from an estimated 2 matches for "gcrelocateoperands".
2015 Jan 17
2
[LLVMdev] How to test isDereferenceablePointer?
...3 @@ static bool isDereferenceablePointer(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?
...onst 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);
>...