Searched refs:hasParamAttribute (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAliasAnalysis.cpp | 170 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 D | BuildLibCalls.cpp | 121 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 D | CallPromotionUtils.cpp | 430 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 D | Function.cpp | 98 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 D | Verifier.cpp | 3253 Check(Callee && Callee->hasParamAttribute(i, Attribute::ImmArg), in visitCallBase()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Function.h | 395 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const;
|
| /llvm-project-15.0.7/llvm/unittests/Frontend/ |
| H A D | OpenMPIRBuilderTest.cpp | 672 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 D | CoroSplit.cpp | 953 if (OrigF.hasParamAttribute(Shape.AsyncLowering.ContextArgNo, in create()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 3850 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 D | AttributorAttributes.cpp | 5018 if (F.hasParamAttribute(u, Attribute::Returned)) { in determineFunctionCaptureCapabilities()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 2687 if (GuardCheckFn->hasParamAttribute(0, Attribute::AttrKind::InReg)) in visitSPDescriptorParent()
|