Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUAliasAnalysis.cpp170 if (F->hasParamAttribute(ArgNo, Attribute::NoAlias) && in pointsToConstantMemory()
171 (F->hasParamAttribute(ArgNo, Attribute::ReadNone) || in pointsToConstantMemory()
172 F->hasParamAttribute(ArgNo, Attribute::ReadOnly))) { in pointsToConstantMemory()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp121 if (F.hasParamAttribute(ArgNo, Attribute::NoCapture)) in setDoesNotCapture()
129 if (F.hasParamAttribute(ArgNo, Attribute::NoAlias)) in setDoesNotAlias()
137 if (F.hasParamAttribute(ArgNo, Attribute::ReadOnly)) in setOnlyReadsMemory()
145 if (F.hasParamAttribute(ArgNo, Attribute::WriteOnly)) in setOnlyWritesMemory()
165 if (!F.hasParamAttribute(ArgNo, Attribute::NoUndef)) { in setArgsNoUndef()
175 if (F.hasParamAttribute(ArgNo, Attribute::NoUndef)) in setArgNoUndef()
190 if (F.hasParamAttribute(ArgNo, Attribute::Returned)) in setReturnedArg()
220 if (F.hasParamAttribute(ArgNo, Attribute::AllocAlign)) in setAlignedAllocParam()
227 if (F.hasParamAttribute(ArgNo, Attribute::AllocatedPointer)) in setAllocatedPointerParam()
1243 if (ExtAttr != Attribute::None && !F.hasParamAttribute(ArgNo, ExtAttr)) in setArgExtAttr()
H A DCallPromotionUtils.cpp430 if (Callee->hasParamAttribute(I, Attribute::ByVal) != in isLegalToPromote()
436 if (Callee->hasParamAttribute(I, Attribute::InAlloca) != in isLegalToPromote()
/llvm-project-15.0.7/llvm/lib/IR/
H A DFunction.cpp98 if (getParent()->hasParamAttribute(getArgNo(), Attribute::NonNull) && in hasNonNullAttr()
100 getParent()->hasParamAttribute(getArgNo(), Attribute::NoUndef))) in hasNonNullAttr()
121 return getParent()->hasParamAttribute(getArgNo(), Attribute::SwiftSelf); in hasSwiftSelfAttr()
125 return getParent()->hasParamAttribute(getArgNo(), Attribute::SwiftError); in hasSwiftErrorAttr()
309 return getParent()->hasParamAttribute(getArgNo(), Kind); in hasAttribute()
640 bool Function::hasParamAttribute(unsigned ArgNo, in hasParamAttribute() function in Function
H A DVerifier.cpp3253 Check(Callee && Callee->hasParamAttribute(i, Attribute::ImmArg), in visitCallBase()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DFunction.h395 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const;
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp672 EXPECT_TRUE(OutlinedFn->hasParamAttribute(0, Attribute::NoAlias)); in TEST_F()
673 EXPECT_TRUE(OutlinedFn->hasParamAttribute(1, Attribute::NoAlias)); in TEST_F()
769 EXPECT_TRUE(OutlinedFn.hasParamAttribute(0, Attribute::NoAlias)); in TEST_F()
770 EXPECT_TRUE(OutlinedFn.hasParamAttribute(1, Attribute::NoAlias)); in TEST_F()
873 EXPECT_TRUE(OutlinedFn.hasParamAttribute(0, Attribute::NoAlias)); in TEST_F()
874 EXPECT_TRUE(OutlinedFn.hasParamAttribute(1, Attribute::NoAlias)); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp953 if (OrigF.hasParamAttribute(Shape.AsyncLowering.ContextArgNo, in create()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp3850 if (!Func->hasParamAttribute(i, Kind)) in parseFunctionRecord()
3883 !Func->arg_empty() && !Func->hasParamAttribute(0, Attribute::ByVal)) { in parseFunctionRecord()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp5018 if (F.hasParamAttribute(u, Attribute::Returned)) { in determineFunctionCaptureCapabilities()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2687 if (GuardCheckFn->hasParamAttribute(0, Attribute::AttrKind::InReg)) in visitSPDescriptorParent()