Home
last modified time | relevance | path

Searched refs:AttributeSet (Results 1 – 25 of 33) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Frontend/OpenMP/
H A DOMPKinds.def456 #define ParamAttrs(...) ArrayRef<AttributeSet>({__VA_ARGS__})
459 #define AttributeSet(...) \
460 AttributeSet::get(Ctx, ArrayRef<Attribute>({__VA_ARGS__}))
470 ? AttributeSet(EnumAttr(NoUnwind), EnumAttr(ReadOnly),
474 : AttributeSet(EnumAttr(NoUnwind)))
477 ? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync),
481 : AttributeSet(EnumAttr(NoUnwind)))
484 ? AttributeSet(EnumAttr(NoUnwind), EnumAttr(WriteOnly),
488 : AttributeSet(EnumAttr(NoUnwind)))
492 ? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync),
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DAttributes.h254 class AttributeSet {
266 explicit AttributeSet(AttributeSetNode *ASN) : SetNode(ASN) {} in AttributeSet() function
270 AttributeSet() = default;
271 AttributeSet(const AttributeSet &) = default;
272 ~AttributeSet() = default;
274 static AttributeSet get(LLVMContext &C, const AttrBuilder &B);
275 static AttributeSet get(LLVMContext &C, ArrayRef<Attribute> Attrs);
277 bool operator==(const AttributeSet &O) const { return SetNode == O.SetNode; }
278 bool operator!=(const AttributeSet &O) const { return !(*this == O); }
282 LLVM_NODISCARD AttributeSet addAttribute(LLVMContext &C,
[all …]
H A DGlobalVariable.h43 AttributeSet Attrs;
223 AttributeSet getAttributes() const { in getAttributes()
233 std::pair<unsigned, AttributeSet> AS[1] = {{index, Attrs}}; in getAttributesAsList()
238 void setAttributes(AttributeSet A) { in setAttributes()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DAttributes.cpp729 AttributeSet AttributeSet::get(LLVMContext &C, const AttrBuilder &B) { in get()
730 return AttributeSet(AttributeSetNode::get(C, B)); in get()
733 AttributeSet AttributeSet::get(LLVMContext &C, ArrayRef<Attribute> Attrs) { in get()
734 return AttributeSet(AttributeSetNode::get(C, Attrs)); in get()
737 AttributeSet AttributeSet::addAttribute(LLVMContext &C, in addAttribute()
742 return addAttributes(C, AttributeSet::get(C, B)); in addAttribute()
745 AttributeSet AttributeSet::addAttribute(LLVMContext &C, StringRef Kind, in addAttribute()
749 return addAttributes(C, AttributeSet::get(C, B)); in addAttribute()
752 AttributeSet AttributeSet::addAttributes(LLVMContext &C, in addAttributes()
753 const AttributeSet AS) const { in addAttributes()
[all …]
H A DAttributeImpl.h285 private TrailingObjects<AttributeListImpl, AttributeSet> {
297 size_t numTrailingObjects(OverloadToken<AttributeSet>) { return NumAttrSets; } in numTrailingObjects() argument
300 AttributeListImpl(ArrayRef<AttributeSet> Sets);
318 using iterator = const AttributeSet *;
320 iterator begin() const { return getTrailingObjects<AttributeSet>(); } in begin()
324 static void Profile(FoldingSetNodeID &ID, ArrayRef<AttributeSet> Nodes);
H A DAsmWriter.cpp753 DenseMap<AttributeSet, unsigned> asMap;
796 int getAttributeGroupSlot(AttributeSet AS);
824 using as_iterator = DenseMap<AttributeSet, unsigned>::iterator;
850 void CreateAttributeSetSlot(AttributeSet AS);
1023 AttributeSet FnAttrs = F.getAttributes().getFnAttributes(); in processModule()
1061 AttributeSet Attrs = Call->getAttributes().getFnAttributes(); in processFunction()
1179 int SlotTracker::getAttributeGroupSlot(AttributeSet AS) { in getAttributeGroupSlot()
1265 void SlotTracker::CreateAttributeSetSlot(AttributeSet AS) { in CreateAttributeSetSlot()
2612 void writeParamOperand(const Value *Operand, AttributeSet Attrs);
2627 void writeAttributeSet(const AttributeSet &AttrSet, bool InAttrGroup = false);
[all …]
H A DVerifier.cpp210 void Write(const AttributeSet *AS) { in Write()
542 void verifyAttributeTypes(AttributeSet Attrs, bool IsFunction,
544 void verifyParameterAttrs(AttributeSet Attrs, Type *Ty, const Value *V);
1720 void Verifier::verifyAttributeTypes(AttributeSet Attrs, bool IsFunction, in verifyAttributeTypes()
1764 void Verifier::verifyParameterAttrs(AttributeSet Attrs, Type *Ty, in verifyParameterAttrs()
1836 AttributeSet::get(Context, IncompatibleAttrs).getAsString(), in verifyParameterAttrs()
1917 AttributeSet RetAttrs = Attrs.getRetAttributes(); in verifyFunctionAttrs()
1946 AttributeSet ArgAttrs = Attrs.getParamAttributes(i); in verifyFunctionAttrs()
2262 AttributeSet ArgAttrs = Attrs.getParamAttributes(5 + i); in verifyStatepoint()
3238 AttributeSet ArgAttrs = Attrs.getParamAttributes(Idx); in visitCallBase()
H A DFunction.cpp156 static Type *getMemoryParamAllocType(AttributeSet ParamAttrs, Type *ArgTy) { in getMemoryParamAllocType()
180 AttributeSet ParamAttrs = in getPassPointeeByValueCopySize()
188 AttributeSet ParamAttrs = in getPointeeInMemoryValueType()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-reduce/deltas/
H A DReduceAttributes.cpp68 const AttributeSet &AS = GV.getAttributes(); in visitGlobalVariable()
97 void visitAttributeSet(const AttributeSet &AS, in visitAttributeSet()
130 for (const AttributeSet &AS : AL) in visitAttributeList()
134 void visitAttributeSet(const AttributeSet &AS) { in visitAttributeSet()
141 AttributeSet
147 return AttributeSet::get(C, B); in convertAttributeRefToAttributeSet()
152 std::vector<std::pair<unsigned, AttributeSet>> SetVec; in convertAttributeRefVecToAttributeList()
161 sort(SetVec, [](const std::pair<unsigned, AttributeSet> &LHS, in convertAttributeRefVecToAttributeList()
162 const std::pair<unsigned, AttributeSet> &RHS) { in convertAttributeRefVecToAttributeList()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp189 SmallVector<AttributeSet, 8> ArgAttrs; in DeleteDeadVarargs()
749 SmallVector<AttributeSet, 8> ArgAttrVec; in RemoveDeadStuffFromFunction()
852 AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs); in RemoveDeadStuffFromFunction()
855 AttributeSet FnAttrs = PAL.getFnAttributes().removeAttribute( in RemoveDeadStuffFromFunction()
893 AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs); in RemoveDeadStuffFromFunction()
905 AttributeSet Attrs = CallPAL.getParamAttributes(Pi); in RemoveDeadStuffFromFunction()
912 ArgAttrVec.push_back(AttributeSet::get( in RemoveDeadStuffFromFunction()
932 AttributeSet FnAttrs = CallPAL.getFnAttributes().removeAttribute( in RemoveDeadStuffFromFunction()
H A DArgumentPromotion.cpp134 SmallVector<AttributeSet, 8> ArgAttrVec; in doPromotion()
147 AttributeSet()); in doPromotion()
203 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
279 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
322 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
H A DAttributor.cpp1710 SmallVector<AttributeSet, 16> NewArgumentAttributes; in rewriteFunctionSignatures()
1720 AttributeSet()); in rewriteFunctionSignatures()
1782 SmallVector<AttributeSet, 16> NewArgOperandAttributes; in rewriteFunctionSignatures()
1796 AttributeSet()); in rewriteFunctionSignatures()
H A DWholeProgramDevirt.cpp1350 std::vector<AttributeSet> NewArgAttrs; in applyICallBranchFunnel()
1351 NewArgAttrs.push_back(AttributeSet::get( in applyICallBranchFunnel()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp476 SmallVector<AttributeSet, 4> NewArgAttrs; in promoteCall()
499 NewArgAttrs.push_back(AttributeSet::get(Ctx, ArgAttrs)); in promoteCall()
518 AttributeSet::get(Ctx, RAttrs), in promoteCall()
H A DFunctionComparator.cpp114 AttributeSet LAS = L.getAttributes(i); in cmpAttrs()
115 AttributeSet RAS = R.getAttributes(i); in cmpAttrs()
116 AttributeSet::iterator LI = LAS.begin(), LE = LAS.end(); in cmpAttrs()
117 AttributeSet::iterator RI = RAS.begin(), RE = RAS.end(); in cmpAttrs()
H A DCloneFunction.cpp113 SmallVector<AttributeSet, 4> NewArgAttrs(NewFunc->arg_size()); in CloneFunctionInto()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/AsmParser/
H A DLLParser.h495 AttributeSet Attrs;
496 ParamInfo(LocTy loc, Value *v, AttributeSet attrs) in ParamInfo()
548 AttributeSet Attrs;
550 ArgInfo(LocTy L, Type *ty, AttributeSet Attr, const std::string &N) in ArgInfo()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp146 AttributeSet A = F.getAttributes().getFnAttributes(); in runOnFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h52 using IndexAndAttrSet = std::pair<unsigned, AttributeSet>;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2613 SmallVector<AttributeSet, 8> ArgAttrs; in transformConstExprCastCall()
2638 ArgAttrs.push_back(AttributeSet::get(Ctx, AB)); in transformConstExprCastCall()
2647 ArgAttrs.push_back(AttributeSet()); in transformConstExprCastCall()
2672 AttributeSet FnAttrs = CallerPAL.getFnAttributes(); in transformConstExprCastCall()
2680 Ctx, FnAttrs, AttributeSet::get(Ctx, RAttrs), ArgAttrs); in transformConstExprCastCall()
2767 AttributeSet NestAttr; in transformCallThroughTrampoline()
2773 AttributeSet AS = NestAttrs.getParamAttributes(NestArgNo); in transformCallThroughTrampoline()
2784 std::vector<AttributeSet> NewArgAttrs; in transformCallThroughTrampoline()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp437 SmallVector<AttributeSet, 8> ArgAttributes; in wrapInvoke()
441 ArgAttributes.push_back(AttributeSet()); in wrapInvoke()
461 AttributeList::get(C, AttributeSet::get(C, FnAttrs), in wrapInvoke()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DLLParser.cpp156 AttributeSet::get(Context, FnAttrs)); in validateEndOfModule()
164 AttributeSet::get(Context, FnAttrs)); in validateEndOfModule()
172 AttributeSet::get(Context, FnAttrs)); in validateEndOfModule()
180 AttributeSet::get(Context, FnAttrs)); in validateEndOfModule()
185 GV->setAttributes(AttributeSet::get(Context,Attrs)); in validateEndOfModule()
1237 GV->setAttributes(AttributeSet::get(Context, Attrs)); in parseGlobal()
2703 ArgLoc, V, AttributeSet::get(V->getContext(), ArgAttrs))); in parseParameterList()
2849 AttributeSet::get(ArgTy->getContext(), Attrs), in parseArgumentList()
2885 AttributeSet::get(ArgTy->getContext(), Attrs), in parseArgumentList()
5872 SmallVector<AttributeSet, 8> Attrs; in parseFunctionHeader()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h230 AttributeSet FnAttrs = (*F)->getAttributes().getFnAttributes();
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGCall.cpp2300 SmallVector<llvm::AttributeSet, 4> ArgAttrs(IRFunctionArgs.totalIRArgs()); in ConstructAttributeList()
2311 llvm::AttributeSet::get(getLLVMContext(), SRETAttrs); in ConstructAttributeList()
2319 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2357 ArgAttrs[IRArgs.first] = llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2372 llvm::AttributeSet::get( in ConstructAttributeList()
2518 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2524 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), FuncAttrs), in ConstructAttributeList()
2525 llvm::AttributeSet::get(getLLVMContext(), RetAttrs), ArgAttrs); in ConstructAttributeList()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/DWARF/
H A DDWARFVerifier.cpp262 SmallDenseSet<uint16_t> AttributeSet; in verifyAbbrevSection() local
264 auto Result = AttributeSet.insert(Attribute.Attr); in verifyAbbrevSection()

12