Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
834 Attrs.hasParamAttribute(I, Attribute::SwiftError) || in selectCall()
835 Attrs.hasParamAttribute(I, Attribute::InAlloca) || in selectCall()
836 Attrs.hasParamAttribute(I, Attribute::Nest)) in selectCall()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DFunction.cpp94 if (getParent()->hasParamAttribute(getArgNo(), Attribute::NonNull) && in hasNonNullAttr()
96 getParent()->hasParamAttribute(getArgNo(), Attribute::NoUndef))) in hasNonNullAttr()
117 return getParent()->hasParamAttribute(getArgNo(), Attribute::SwiftSelf); in hasSwiftSelfAttr()
121 return getParent()->hasParamAttribute(getArgNo(), Attribute::SwiftError); in hasSwiftErrorAttr()
138 return Attrs.hasParamAttribute(getArgNo(), Attribute::ByVal) || in hasPassPointeeByValueCopyAttr()
139 Attrs.hasParamAttribute(getArgNo(), Attribute::InAlloca) || in hasPassPointeeByValueCopyAttr()
140 Attrs.hasParamAttribute(getArgNo(), Attribute::Preallocated); in hasPassPointeeByValueCopyAttr()
147 return Attrs.hasParamAttribute(getArgNo(), Attribute::ByVal) || in hasPointeeInMemoryValueAttr()
148 Attrs.hasParamAttribute(getArgNo(), Attribute::StructRet) || in hasPointeeInMemoryValueAttr()
149 Attrs.hasParamAttribute(getArgNo(), Attribute::InAlloca) || in hasPointeeInMemoryValueAttr()
[all …]
H A DVerifier.cpp2440 Assert(F.arg_empty() || Attrs.hasParamAttribute(0, Attribute::ByVal), in visitFunction()
2460 Assert(!Attrs.hasParamAttribute(i, Attribute::ByVal), in visitFunction()
2462 Assert(!Attrs.hasParamAttribute(i, Attribute::Preallocated), in visitFunction()
2464 Assert(!Attrs.hasParamAttribute(i, Attribute::InAlloca), in visitFunction()
2467 if (Attrs.hasParamAttribute(i, Attribute::ByRef)) { in visitFunction()
2508 if (Attrs.hasParamAttribute(i, Attribute::SwiftError)) { in visitFunction()
3197 if (Attrs.hasParamAttribute(i, Attribute::ImmArg)) { in visitCallBase()
3200 Assert(Callee && Callee->hasParamAttribute(i, Attribute::ImmArg), in visitCallBase()
3229 if (Attrs.hasParamAttribute(Idx, Attribute::Nest)) in visitCallBase()
3231 if (Attrs.hasParamAttribute(Idx, Attribute::Returned)) in visitCallBase()
[all …]
H A DAttributes.cpp1588 bool AttributeList::hasParamAttribute(unsigned ArgNo, in hasParamAttribute() function in AttributeList
H A DInstructions.cpp342 if (Attrs.hasParamAttribute(ArgNo, Kind)) in paramHasAttr()
345 return F->getAttributes().hasParamAttribute(ArgNo, Kind); in paramHasAttr()
H A DAutoUpgrade.cpp4374 !F.arg_empty() && !F.hasParamAttribute(0, Attribute::ByVal)) { in UpgradeFunctionAttributes()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DFunction.h449 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const { in hasParamAttribute() function
450 return getAttributes().hasParamAttribute(ArgNo, Kind); in hasParamAttribute()
695 return AttributeSets.hasParamAttribute(0, Attribute::StructRet) || in hasStructRetAttr()
696 AttributeSets.hasParamAttribute(1, Attribute::StructRet); in hasStructRetAttr()
H A DAttributes.h657 bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const;
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DLint.cpp238 if (PAL.hasParamAttribute(ArgNo, Attribute::ByVal)) in visitCallBase()
271 if (PAL.hasParamAttribute(ArgNo++, Attribute::ByVal)) in visitCallBase()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp1806 return F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::InReg) || in isArgPassedInSGPR()
1807 F->getAttributes().hasParamAttribute(A->getArgNo(), Attribute::ByVal); in isArgPassedInSGPR()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp765 HasLiveReturnedArg |= PAL.hasParamAttribute(ArgI, Attribute::Returned); in RemoveDeadStuffFromFunction()
H A DAttributorAttributes.cpp4175 if (F.hasParamAttribute(u, Attribute::Returned)) { in determineFunctionCaptureCapabilities()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp111 IsSExt = Attrs.hasParamAttribute(ArgIdx, Attribute::SExt); in setAttributes()
112 IsZExt = Attrs.hasParamAttribute(ArgIdx, Attribute::ZExt); in setAttributes()
113 IsInReg = Attrs.hasParamAttribute(ArgIdx, Attribute::InReg); in setAttributes()
114 IsSRet = Attrs.hasParamAttribute(ArgIdx, Attribute::StructRet); in setAttributes()
115 IsNest = Attrs.hasParamAttribute(ArgIdx, Attribute::Nest); in setAttributes()
116 IsReturned = Attrs.hasParamAttribute(ArgIdx, Attribute::Returned); in setAttributes()
117 IsSwiftSelf = Attrs.hasParamAttribute(ArgIdx, Attribute::SwiftSelf); in setAttributes()
118 IsSwiftAsync = Attrs.hasParamAttribute(ArgIdx, Attribute::SwiftAsync); in setAttributes()
119 IsSwiftError = Attrs.hasParamAttribute(ArgIdx, Attribute::SwiftError); in setAttributes()
122 IsByVal = Attrs.hasParamAttribute(ArgIdx, Attribute::ByVal); in setAttributes()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2560 if (CallerPAL.hasParamAttribute(i, Attribute::SwiftError)) in transformConstExprCastCall()
2565 if (ParamTy != ActTy && CallerPAL.hasParamAttribute(i, Attribute::ByVal)) { in transformConstExprCastCall()
2635 if (CallerPAL.hasParamAttribute(i, Attribute::ByVal)) { in transformConstExprCastCall()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1239 if (Attrs.hasParamAttribute(0, AK)) in shouldBeMustTail()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp3373 if (!Func->hasParamAttribute(i, Kind)) in parseFunctionRecord()