Home
last modified time | relevance | path

Searched refs:ToWrap (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFCheckAndAdjustIR.cpp432 Value *ToWrap) { in aspaceWrapValue() argument
433 auto It = Cache.find(ToWrap); in aspaceWrapValue()
437 if (auto *GEP = dyn_cast<GetElementPtrInst>(ToWrap)) { in aspaceWrapValue()
446 Cache[ToWrap] = NewGEP; in aspaceWrapValue()
451 if (Instruction *InsnPtr = dyn_cast<Instruction>(ToWrap)) in aspaceWrapValue()
455 auto *PtrTy = cast<PointerType>(ToWrap->getType()); in aspaceWrapValue()
457 auto *ACast = IB.CreateAddrSpaceCast(ToWrap, ASZeroPtrTy, ToWrap->getName()); in aspaceWrapValue()
458 Cache[ToWrap] = ACast; in aspaceWrapValue()