Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAliasAnalysis.cpp165 if (F->hasParamAttribute(ArgNo, Attribute::NoAlias) && in pointsToConstantMemory()
166 (F->hasParamAttribute(ArgNo, Attribute::ReadNone) || in pointsToConstantMemory()
167 F->hasParamAttribute(ArgNo, Attribute::ReadOnly))) { in pointsToConstantMemory()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp648 if (Attrs.hasParamAttribute(I, Attribute::ByVal) || in fastLowerArguments()
649 Attrs.hasParamAttribute(I, Attribute::SwiftSelf) || in fastLowerArguments()
650 Attrs.hasParamAttribute(I, Attribute::SwiftError) || in fastLowerArguments()
651 Attrs.hasParamAttribute(I, Attribute::InAlloca) || in fastLowerArguments()
652 Attrs.hasParamAttribute(I, Attribute::Nest)) in fastLowerArguments()
832 if (Attrs.hasParamAttribute(I, Attribute::ByVal) || in selectCall()
833 Attrs.hasParamAttribute(I, Attribute::SwiftSelf) || in selectCall()
835 Attrs.hasParamAttribute(I, Attribute::InAlloca) || in selectCall()
836 Attrs.hasParamAttribute(I, Attribute::Nest)) in selectCall()
841 if (Attrs.hasParamAttribute(I, Attribute::SExt)) in selectCall()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DFunction.cpp99 if (getParent()->hasParamAttribute(getArgNo(), Attribute::NonNull) && in hasNonNullAttr()
143 return Attrs.hasParamAttribute(getArgNo(), Attribute::ByVal) || in hasPassPointeeByValueCopyAttr()
144 Attrs.hasParamAttribute(getArgNo(), Attribute::InAlloca) || in hasPassPointeeByValueCopyAttr()
145 Attrs.hasParamAttribute(getArgNo(), Attribute::Preallocated); in hasPassPointeeByValueCopyAttr()
152 return Attrs.hasParamAttribute(getArgNo(), Attribute::ByVal) || in hasPointeeInMemoryValueAttr()
153 Attrs.hasParamAttribute(getArgNo(), Attribute::StructRet) || in hasPointeeInMemoryValueAttr()
154 Attrs.hasParamAttribute(getArgNo(), Attribute::InAlloca) || in hasPointeeInMemoryValueAttr()
156 Attrs.hasParamAttribute(getArgNo(), Attribute::ByRef); in hasPointeeInMemoryValueAttr()
281 return Attrs.hasParamAttribute(getArgNo(), Attribute::ReadOnly) || in onlyReadsMemory()
282 Attrs.hasParamAttribute(getArgNo(), Attribute::ReadNone); in onlyReadsMemory()
[all …]
H A DVerifier.cpp2371 Assert(!Attrs.hasParamAttribute(i, Attribute::ByVal), in visitFunction()
2373 Assert(!Attrs.hasParamAttribute(i, Attribute::Preallocated), in visitFunction()
2375 Assert(!Attrs.hasParamAttribute(i, Attribute::InAlloca), in visitFunction()
2378 if (Attrs.hasParamAttribute(i, Attribute::ByRef)) { in visitFunction()
2419 if (Attrs.hasParamAttribute(i, Attribute::SwiftError)) { in visitFunction()
3121 if (Attrs.hasParamAttribute(i, Attribute::ImmArg)) { in visitCallBase()
3153 if (Attrs.hasParamAttribute(Idx, Attribute::Nest)) in visitCallBase()
3155 if (Attrs.hasParamAttribute(Idx, Attribute::Returned)) in visitCallBase()
3332 if (Attrs.hasParamAttribute(I, Attribute::Alignment) && in getParameterABIAttributes()
3333 (Attrs.hasParamAttribute(I, Attribute::ByVal) || in getParameterABIAttributes()
[all …]
H A DAttributes.cpp1408 bool AttributeList::hasParamAttribute(unsigned ArgNo, in hasParamAttribute() function in AttributeList
H A DInstructions.cpp346 if (Attrs.hasParamAttribute(ArgNo, Kind)) in paramHasAttr()
349 return F->getAttributes().hasParamAttribute(ArgNo, Kind); in paramHasAttr()
H A DAutoUpgrade.cpp4379 !F.arg_empty() && !F.hasParamAttribute(0, Attribute::ByVal)) { in UpgradeFunctionAttributes()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DFunction.h450 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const { in hasParamAttribute() function
451 return getAttributes().hasParamAttribute(ArgNo, Kind); in hasParamAttribute()
696 return AttributeSets.hasParamAttribute(0, Attribute::StructRet) || in hasStructRetAttr()
697 AttributeSets.hasParamAttribute(1, Attribute::StructRet); in hasStructRetAttr()
H A DAttributes.h664 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBuildLibCalls.cpp107 if (F.hasParamAttribute(ArgNo, Attribute::NoCapture)) in setDoesNotCapture()
115 if (F.hasParamAttribute(ArgNo, Attribute::NoAlias)) in setDoesNotAlias()
123 if (F.hasParamAttribute(ArgNo, Attribute::ReadOnly)) in setOnlyReadsMemory()
131 if (F.hasParamAttribute(ArgNo, Attribute::WriteOnly)) in setOnlyWritesMemory()
139 if (F.hasParamAttribute(ArgNo, Attribute::SExt)) in setSignExtendedArg()
159 if (!F.hasParamAttribute(ArgNo, Attribute::NoUndef)) { in setArgsNoUndef()
169 if (F.hasParamAttribute(ArgNo, Attribute::NoUndef)) in setArgNoUndef()
181 if (F.hasParamAttribute(ArgNo, Attribute::Returned)) in setReturnedArg()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp238 if (PAL.hasParamAttribute(ArgNo, Attribute::ByVal)) in visitCallBase()
271 if (PAL.hasParamAttribute(ArgNo++, Attribute::ByVal)) in visitCallBase()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp1828 return F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::InReg) || in isArgPassedInSGPR()
1829 F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::ByVal); in isArgPassedInSGPR()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp766 HasLiveReturnedArg |= PAL.hasParamAttribute(ArgI, Attribute::Returned); in RemoveDeadStuffFromFunction()
H A DAttributorAttributes.cpp4714 if (F.hasParamAttribute(u, Attribute::Returned)) { in determineFunctionCaptureCapabilities()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2656 if (CallerPAL.hasParamAttribute(i, Attribute::SwiftError)) in transformConstExprCastCall()
2661 if (ParamTy != ActTy && CallerPAL.hasParamAttribute(i, Attribute::ByVal)) { in transformConstExprCastCall()
2731 if (CallerPAL.hasParamAttribute(i, Attribute::ByVal)) { in transformConstExprCastCall()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp917 if (OrigF.hasParamAttribute(Shape.AsyncLowering.ContextArgNo, in create()
1265 if (Attrs.hasParamAttribute(0, AK)) in shouldBeMustTail()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1460 if (!PAL.hasParamAttribute(paramIndex, Attribute::ByVal)) { in emitFunctionParamList()
H A DNVPTXISelLowering.cpp2533 if (!PAL.hasParamAttribute(i, Attribute::ByVal)) { in LowerFormalArguments()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp3335 if (!Func->hasParamAttribute(i, Kind)) in parseFunctionRecord()