Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/llvm/include/llvm/Frontend/OpenMP/
H A DOMPKinds.def492 #define ParamAttrs(...) ArrayRef<AttributeSet>({__VA_ARGS__})
497 #define AttributeSet(...) \
498 AttributeSet::get(Ctx, ArrayRef<Attribute>({__VA_ARGS__}))
509 ? AttributeSet(
513 : AttributeSet(EnumAttr(NoUnwind)))
517 ? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync), EnumAttr(NoFree),
520 : AttributeSet(EnumAttr(NoUnwind)))
524 ? AttributeSet(
528 : AttributeSet(EnumAttr(NoUnwind)))
532 ? AttributeSet(EnumAttr(NoUnwind), EnumAttr(NoSync),
[all …]
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DAttributes.cpp693 AttributeSet AttributeSet::get(LLVMContext &C, const AttrBuilder &B) { in get()
694 return AttributeSet(AttributeSetNode::get(C, B)); in get()
697 AttributeSet AttributeSet::get(LLVMContext &C, ArrayRef<Attribute> Attrs) { in get()
698 return AttributeSet(AttributeSetNode::get(C, Attrs)); in get()
701 AttributeSet AttributeSet::addAttribute(LLVMContext &C, in addAttribute()
706 return addAttributes(C, AttributeSet::get(C, B)); in addAttribute()
709 AttributeSet AttributeSet::addAttribute(LLVMContext &C, StringRef Kind, in addAttribute()
713 return addAttributes(C, AttributeSet::get(C, B)); in addAttribute()
716 AttributeSet AttributeSet::addAttributes(LLVMContext &C, in addAttributes()
717 const AttributeSet AS) const { in addAttributes()
[all …]
H A DAttributeImpl.h293 private TrailingObjects<AttributeListImpl, AttributeSet> {
305 size_t numTrailingObjects(OverloadToken<AttributeSet>) { return NumAttrSets; } in numTrailingObjects() argument
308 AttributeListImpl(ArrayRef<AttributeSet> Sets);
326 using iterator = const AttributeSet *;
328 iterator begin() const { return getTrailingObjects<AttributeSet>(); } in begin()
332 static void Profile(FoldingSetNodeID &ID, ArrayRef<AttributeSet> Nodes);
H A DTypeFinder.cpp198 for (AttributeSet AS : AL) in incorporateAttributes()
H A DAsmWriter.cpp709 DenseMap<AttributeSet, unsigned> asMap;
763 int getAttributeGroupSlot(AttributeSet AS);
791 using as_iterator = DenseMap<AttributeSet, unsigned>::iterator;
817 void CreateAttributeSetSlot(AttributeSet AS);
1006 AttributeSet FnAttrs = F.getAttributes().getFnAttrs(); in processModule()
1047 AttributeSet Attrs = Call->getAttributes().getFnAttrs(); in processFunction()
1183 int SlotTracker::getAttributeGroupSlot(AttributeSet AS) { in getAttributeGroupSlot()
1269 void SlotTracker::CreateAttributeSetSlot(AttributeSet AS) { in CreateAttributeSetSlot()
2581 void writeParamOperand(const Value *Operand, AttributeSet Attrs);
2596 void writeAttributeSet(const AttributeSet &AttrSet, bool InAttrGroup = false);
[all …]
H A DVerifier.cpp210 void Write(const AttributeSet *AS) { in Write()
561 void verifyAttributeTypes(AttributeSet Attrs, const Value *V);
562 void verifyParameterAttrs(AttributeSet Attrs, Type *Ty, const Value *V);
1759 void Verifier::verifyAttributeTypes(AttributeSet Attrs, const Value *V) { in verifyAttributeTypes()
1787 void Verifier::verifyParameterAttrs(AttributeSet Attrs, Type *Ty, in verifyParameterAttrs()
1973 AttributeSet RetAttrs = Attrs.getRetAttrs(); in verifyFunctionAttrs()
1986 AttributeSet ArgAttrs = Attrs.getParamAttrs(i); in verifyFunctionAttrs()
2352 AttributeSet ArgAttrs = Attrs.getParamAttrs(5 + i); in verifyStatepoint()
3344 AttributeSet ArgAttrs = Attrs.getParamAttrs(Idx); in visitCallBase()
H A DFunction.cpp160 static Type *getMemoryParamAllocType(AttributeSet ParamAttrs) { in getMemoryParamAllocType()
178 AttributeSet ParamAttrs = in getPassPointeeByValueCopySize()
186 AttributeSet ParamAttrs = in getPointeeInMemoryValueType()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DAttributes.h295 class AttributeSet {
307 explicit AttributeSet(AttributeSetNode *ASN) : SetNode(ASN) {} in AttributeSet() function
311 AttributeSet() = default;
312 AttributeSet(const AttributeSet &) = default;
313 ~AttributeSet() = default;
315 static AttributeSet get(LLVMContext &C, const AttrBuilder &B);
316 static AttributeSet get(LLVMContext &C, ArrayRef<Attribute> Attrs);
318 bool operator==(const AttributeSet &O) const { return SetNode == O.SetNode; }
319 bool operator!=(const AttributeSet &O) const { return !(*this == O); }
323 [[nodiscard]] AttributeSet addAttribute(LLVMContext &C,
[all …]
H A DGlobalVariable.h42 AttributeSet Attrs;
222 AttributeSet getAttributes() const { in getAttributes()
232 std::pair<unsigned, AttributeSet> AS[1] = {{index, Attrs}}; in getAttributesAsList()
237 void setAttributes(AttributeSet A) { in setAttributes()
/openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceAttributes.cpp61 AttributeSet AS = GV.getAttributes(); in visitGlobalVariable()
65 GV.setAttributes(AttributeSet::get(Context, AttrsToPreserve)); in visitGlobalVariable()
79 AttributeSet visitAttributeIndex(AttributeList AL, unsigned Index) { in visitAttributeIndex()
85 return AttributeSet::get(Context, AttributesToPreserve); in visitAttributeIndex()
89 SmallVector<std::pair<unsigned, AttributeSet>> NewAttrList; in visitAttributeList()
96 AttributeSet AttrSet = visitAttributeIndex(AL, SetIdx); in visitAttributeList()
104 AttributeSet FnAttrSet = in visitAttributeList()
112 void visitAttributeSet(const AttributeSet &AS, AttrBuilder &AttrsToPreserve) { in visitAttributeSet()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DDeadArgumentElimination.cpp187 SmallVector<AttributeSet, 8> ArgAttrs; in deleteDeadVarargs()
736 SmallVector<AttributeSet, 8> ArgAttrVec; in removeDeadStuffFromFunction()
839 AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs); in removeDeadStuffFromFunction()
842 AttributeSet FnAttrs = in removeDeadStuffFromFunction()
880 AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs); in removeDeadStuffFromFunction()
892 AttributeSet Attrs = CallPAL.getParamAttrs(Pi); in removeDeadStuffFromFunction()
899 ArgAttrVec.push_back(AttributeSet::get( in removeDeadStuffFromFunction()
919 AttributeSet FnAttrs = CallPAL.getFnAttrs().removeAttribute( in removeDeadStuffFromFunction()
H A DArgumentPromotion.cpp160 SmallVector<AttributeSet, 8> ArgAttrVec; in doPromotion()
178 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
256 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp503 SmallVector<AttributeSet, 4> NewArgAttrs; in promoteCall()
524 NewArgAttrs.push_back(AttributeSet::get(Ctx, ArgAttrs)); in promoteCall()
543 AttributeSet::get(Ctx, RAttrs), in promoteCall()
H A DFunctionComparator.cpp122 AttributeSet LAS = L.getAttributes(i); in cmpAttrs()
123 AttributeSet RAS = R.getAttributes(i); in cmpAttrs()
124 AttributeSet::iterator LI = LAS.begin(), LE = LAS.end(); in cmpAttrs()
125 AttributeSet::iterator RI = RAS.begin(), RE = RAS.end(); in cmpAttrs()
/openbsd-src/gnu/llvm/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp146 AttributeSet A = F.getAttributes().getFnAttrs(); in runOnFunction()
/openbsd-src/gnu/llvm/llvm/include/llvm/AsmParser/
H A DLLParser.h519 AttributeSet Attrs;
520 ParamInfo(LocTy loc, Value *v, AttributeSet attrs) in ParamInfo()
578 AttributeSet Attrs;
580 ArgInfo(LocTy L, Type *ty, AttributeSet Attr, const std::string &N) in ArgInfo()
/openbsd-src/gnu/llvm/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILValueEnumerator.h55 using IndexAndAttrSet = std::pair<unsigned, AttributeSet>;
/openbsd-src/gnu/llvm/llvm/lib/Bitcode/Writer/
H A DValueEnumerator.h52 using IndexAndAttrSet = std::pair<unsigned, AttributeSet>;
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVSExtWRemoval.cpp176 const AttributeSet &Attrs = CalleeFn->getAttributes().getRetAttrs(); in isSignExtendedW()
/openbsd-src/gnu/llvm/llvm/lib/AsmParser/
H A DLLParser.cpp183 GV->setAttributes(AttributeSet::get(Context,Attrs)); in validateEndOfModule()
1333 GV->setAttributes(AttributeSet::get(Context, Attrs)); in parseGlobal()
2744 ArgLoc, V, AttributeSet::get(V->getContext(), ArgAttrs))); in parseParameterList()
2875 AttributeSet::get(ArgTy->getContext(), Attrs), in parseArgumentList()
2911 AttributeSet::get(ArgTy->getContext(), Attrs), in parseArgumentList()
5971 SmallVector<AttributeSet, 8> Attrs; in parseFunctionHeader()
5979 AttributeList::get(Context, AttributeSet::get(Context, FuncAttrs), in parseFunctionHeader()
5980 AttributeSet::get(Context, RetAttrs), Attrs); in parseFunctionHeader()
6714 SmallVector<AttributeSet, 8> ArgAttrs; in parseInvoke()
6740 AttributeList::get(Context, AttributeSet::get(Context, FnAttrs), in parseInvoke()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp3546 SmallVector<AttributeSet, 8> ArgAttrs; in transformConstExprCastCall()
3576 ArgAttrs.push_back(AttributeSet::get(Ctx, AB)); in transformConstExprCastCall()
3587 ArgAttrs.push_back(AttributeSet()); in transformConstExprCastCall()
3612 AttributeSet FnAttrs = CallerPAL.getFnAttrs(); in transformConstExprCastCall()
3620 Ctx, FnAttrs, AttributeSet::get(Ctx, RAttrs), ArgAttrs); in transformConstExprCastCall()
3698 AttributeSet NestAttr; in transformCallThroughTrampoline()
3704 AttributeSet AS = NestAttrs.getParamAttrs(NestArgNo); in transformCallThroughTrampoline()
3715 std::vector<AttributeSet> NewArgAttrs; in transformCallThroughTrampoline()
/openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp538 SmallVector<AttributeSet, 8> ArgAttributes; in wrapInvoke()
542 ArgAttributes.push_back(AttributeSet()); in wrapInvoke()
563 C, AttributeSet::get(C, FnAttrs), InvokeAL.getRetAttrs(), ArgAttributes); in wrapInvoke()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.h256 AttributeSet FnAttrs = (*F)->getAttributes().getFnAttrs();
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/DWARF/
H A DDWARFVerifier.cpp307 SmallDenseSet<uint16_t> AttributeSet; in verifyAbbrevSection() local
309 auto Result = AttributeSet.insert(Attribute.Attr); in verifyAbbrevSection()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCall.cpp2418 SmallVector<llvm::AttributeSet, 4> ArgAttrs(IRFunctionArgs.totalIRArgs()); in ConstructAttributeList()
2429 llvm::AttributeSet::get(getLLVMContext(), SRETAttrs); in ConstructAttributeList()
2437 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2475 ArgAttrs[IRArgs.first] = llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2490 llvm::AttributeSet::get( in ConstructAttributeList()
2652 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), Attrs)); in ConstructAttributeList()
2658 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), FuncAttrs), in ConstructAttributeList()
2659 llvm::AttributeSet::get(getLLVMContext(), RetAttrs), ArgAttrs); in ConstructAttributeList()

12