Home
last modified time | relevance | path

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

/llvm-project/llvm/include/llvm/ADT/
H A DPointerIntPair.h88 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair() argument
89 setPointerAndInt(PtrVal, IntVal); in PointerIntPair()
92 explicit PointerIntPair(PointerTy PtrVal) { initWithPointer(PtrVal); } in PointerIntPair() argument
98 void setPointer(PointerTy PtrVal) & { in setPointer() argument
99 Value = Info::updatePointer(Value, PtrVal); in setPointer()
106 void initWithPointer(PointerTy PtrVal) & { in initWithPointer() argument
107 Value = Info::updatePointer(0, PtrVal); in initWithPointer()
110 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) & { in setPointerAndInt() argument
111 Value = Info::updateInt(Info::updatePointer(0, PtrVal), in setPointerAndInt()
H A DImmutableList.h234 uintptr_t PtrVal = reinterpret_cast<uintptr_t>(X.getInternalPointer());
235 return (unsigned((uintptr_t)PtrVal) >> 4) ^
236 (unsigned((uintptr_t)PtrVal) >> 9);
H A DDenseMapInfo.h84 static unsigned getHashValue(const T *PtrVal) {
85 return (unsigned((uintptr_t)PtrVal) >> 4) ^
86 (unsigned((uintptr_t)PtrVal) >> 9);
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_dense_map_info.h95 static constexpr unsigned getHashValue(const T *PtrVal) {
96 return (unsigned((uptr)PtrVal) >> 4) ^ (unsigned((uptr)PtrVal) >> 9);
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUnixAPIChecker.cpp56 EnsurePtrNotNull(SVal PtrVal, const Expr *PtrExpr, CheckerContext &C,
114 SVal PtrVal, const Expr *PtrExpr, CheckerContext &C, ProgramStateRef State, in EnsurePtrNotNull() argument
117 const auto Ptr = PtrVal.getAs<DefinedSVal>(); in EnsurePtrNotNull()
H A DSmartPtrModeling.cpp308 const auto PtrVal = C.getSValBuilder().getConjuredHeapSymbolVal( in evalCall() local
313 State = State->set<TrackedRegionMap>(ThisRegion, PtrVal); in evalCall()
314 State = State->assume(PtrVal, true); in evalCall()
/llvm-project/clang/unittests/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysisTest.cpp831 auto *PtrVal = cast_or_null<PointerValue>(Env.getValue(*E)); in join()
832 if (PtrVal == nullptr) { in join()
833 PtrVal = cast<PointerValue>(Env.createValue(E->getType())); in join()
834 Env.setValue(*E, *PtrVal); in join()
839 PtrVal->setProperty("is_null", Env.getBoolLiteralValue(true)); in join()
842 PtrVal->setProperty("is_null", Env.getBoolLiteralValue(false)); in widen()
794 auto *PtrVal = cast_or_null<PointerValue>(Env.getValue(*E)); transfer() local
/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp980 Info.PtrVal = Inst->getArgOperand(0); in getTgtMemIntrinsic()
997 Info.PtrVal = Inst->getArgOperand(1); in getTgtMemIntrinsic()
1006 Info.PtrVal = Inst->getArgOperand(0); in getTgtMemIntrinsic()
/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1735 ValueLatticeElement PtrVal = getValueState(I.getOperand(0)); in handleCallOverdefined()
1736 if (PtrVal.isUnknownOrUndef()) in handleCallOverdefined()
1741 if (SCCPSolver::isConstant(PtrVal)) { in handleCallOverdefined()
1742 Constant *Ptr = getConstant(PtrVal, I.getOperand(0)->getType());
1657 ValueLatticeElement PtrVal = getValueState(I.getOperand(0)); visitLoadInst() local
/llvm-project/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp823 Info.PtrVal = Inst->getOperand(0); in ParseMemoryInst()
830 Info.PtrVal = Inst->getOperand(1); in ParseMemoryInst()
914 return Info.PtrVal; in getPointerOperand()
H A DLoopStrengthReduce.cpp1013 if (IntrInfo.PtrVal == OperandVal) in isAddressUse()
1068 if (TTI.getTgtMemIntrinsic(II, IntrInfo) && IntrInfo.PtrVal) { in getAccessType()
1070 = IntrInfo.PtrVal->getType()->getPointerAddressSpace(); in getAccessType()
/llvm-project/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp1983 Value *PtrVal = PointerOperand; in expandAtomicOpToLibcall()
1984 PtrVal = Builder.CreateAddrSpaceCast(PtrVal, PointerType::getUnqual(Ctx)); in expandAtomicOpToLibcall()
1985 Args.push_back(PtrVal); in expandAtomicOpToLibcall()
1939 Value *PtrVal = PointerOperand; expandAtomicOpToLibcall() local
H A DCodeGenPrepare.cpp2738 Value *PtrVal = PtrOps.pop_back_val(); in dupRetToEnableTailCallOpts()
2739 unsigned AS = PtrVal->getType()->getPointerAddressSpace(); in dupRetToEnableTailCallOpts()
2740 if (optimizeMemoryInst(II, PtrVal, AccessTy, AS)) in dupRetToEnableTailCallOpts()
2535 Value *PtrVal = PtrOps.pop_back_val(); optimizeCallInst() local
/llvm-project/polly/lib/Analysis/
H A DScopDetection.cpp533 for (auto *PtrVal : PtrVals) in involvesMultiplePtrs()
534 if (PtrVal != BasePtrVal && !AA.isNoAlias(PtrVal, BasePtrVal)) in involvesMultiplePtrs()
532 for (auto *PtrVal : PtrVals) involvesMultiplePtrs() local
/llvm-project/llvm/tools/llvm-c-test/
H A Decho.cpp49 static unsigned getHashValue(const T *PtrVal) { in getHashValue()
50 return hash_value(PtrVal); in getHashValue()
/llvm-project/clang/lib/CodeGen/
H A DMicrosoftCXXABI.cpp572 llvm::Constant *getImageRelativeConstant(llvm::Constant *PtrVal) { in getImageBase()
574 return PtrVal; in getImageBase()
576 if (PtrVal->isNullValue())
582 llvm::ConstantExpr::getPtrToInt(PtrVal, CGM.IntPtrTy); in getImageRelativeConstant()
577 getImageRelativeConstant(llvm::Constant * PtrVal) getImageRelativeConstant() argument
/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp534 Info.PtrVal = Inst->getArgOperand(0); in getArithmeticInstrCost()
/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp8998 static SDValue getMemCmpLoad(const Value *PtrVal, MVT LoadVT, in visitMemChrCall()
9002 if (const Constant *LoadInput = dyn_cast<Constant>(PtrVal)) { in visitMemChrCall()
9005 Type::getIntNTy(PtrVal->getContext(), LoadVT.getScalarSizeInBits()); in visitMemChrCall()
9020 if (Builder.BatchAA && Builder.BatchAA->pointsToConstantMemory(PtrVal)) { in visitMemPCpyCall()
9028 SDValue Ptr = Builder.getValue(PtrVal); in visitMemPCpyCall()
9031 MachinePointerInfo(PtrVal), Align(1)); in visitMemPCpyCall()
8838 getMemCmpLoad(const Value * PtrVal,MVT LoadVT,SelectionDAGBuilder & Builder) getMemCmpLoad() argument
/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h76 Value *PtrVal = nullptr;
78 Value *PtrVal = nullptr; global() member
/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp4338 Info.PtrVal = Inst->getArgOperand(0);
4345 Info.PtrVal = Inst->getArgOperand(Inst->arg_size() - 1); in getScalingFactorCost()