Home
last modified time | relevance | path

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

12

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
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 …]
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DAttributes.h266 class AttributeSet {
278 explicit AttributeSet(AttributeSetNode *ASN) : SetNode(ASN) {} in AttributeSet() function
282 AttributeSet() = default;
283 AttributeSet(const AttributeSet &) = default;
284 ~AttributeSet() = default;
286 static AttributeSet get(LLVMContext &C, const AttrBuilder &B);
287 static AttributeSet get(LLVMContext &C, ArrayRef<Attribute> Attrs);
289 bool operator==(const AttributeSet &O) const { return SetNode == O.SetNode; }
290 bool operator!=(const AttributeSet &O) const { return !(*this == O); }
294 LLVM_NODISCARD AttributeSet addAttribute(LLVMContext &C,
[all …]
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()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
DAttributes.cpp590 AttributeSet AttributeSet::get(LLVMContext &C, const AttrBuilder &B) { in get()
591 return AttributeSet(AttributeSetNode::get(C, B)); in get()
594 AttributeSet AttributeSet::get(LLVMContext &C, ArrayRef<Attribute> Attrs) { in get()
595 return AttributeSet(AttributeSetNode::get(C, Attrs)); in get()
598 AttributeSet AttributeSet::addAttribute(LLVMContext &C, in addAttribute()
603 return addAttributes(C, AttributeSet::get(C, B)); in addAttribute()
606 AttributeSet AttributeSet::addAttribute(LLVMContext &C, StringRef Kind, in addAttribute()
610 return addAttributes(C, AttributeSet::get(C, B)); in addAttribute()
613 AttributeSet AttributeSet::addAttributes(LLVMContext &C, in addAttributes()
614 const AttributeSet AS) const { in addAttributes()
[all …]
DAttributeImpl.h281 private TrailingObjects<AttributeListImpl, AttributeSet> {
293 size_t numTrailingObjects(OverloadToken<AttributeSet>) { return NumAttrSets; } in numTrailingObjects() argument
296 AttributeListImpl(ArrayRef<AttributeSet> Sets);
314 using iterator = const AttributeSet *;
316 iterator begin() const { return getTrailingObjects<AttributeSet>(); } in begin()
320 static void Profile(FoldingSetNodeID &ID, ArrayRef<AttributeSet> Nodes);
DAsmWriter.cpp694 DenseMap<AttributeSet, unsigned> asMap;
748 int getAttributeGroupSlot(AttributeSet AS);
776 using as_iterator = DenseMap<AttributeSet, unsigned>::iterator;
802 void CreateAttributeSetSlot(AttributeSet AS);
991 AttributeSet FnAttrs = F.getAttributes().getFnAttributes(); in processModule()
1032 AttributeSet Attrs = Call->getAttributes().getFnAttributes(); in processFunction()
1168 int SlotTracker::getAttributeGroupSlot(AttributeSet AS) { in getAttributeGroupSlot()
1254 void SlotTracker::CreateAttributeSetSlot(AttributeSet AS) { in CreateAttributeSetSlot()
2601 void writeParamOperand(const Value *Operand, AttributeSet Attrs);
2616 void writeAttributeSet(const AttributeSet &AttrSet, bool InAttrGroup = false);
[all …]
DVerifier.cpp210 void Write(const AttributeSet *AS) { in Write()
543 void verifyAttributeTypes(AttributeSet Attrs, const Value *V);
544 void verifyParameterAttrs(AttributeSet Attrs, Type *Ty, const Value *V);
1656 void Verifier::verifyAttributeTypes(AttributeSet Attrs, const Value *V) { in verifyAttributeTypes()
1684 void Verifier::verifyParameterAttrs(AttributeSet Attrs, Type *Ty, in verifyParameterAttrs()
1864 AttributeSet RetAttrs = Attrs.getRetAttributes(); in verifyFunctionAttrs()
1877 AttributeSet ArgAttrs = Attrs.getParamAttributes(i); in verifyFunctionAttrs()
2171 AttributeSet ArgAttrs = Attrs.getParamAttributes(5 + i); in verifyStatepoint()
3162 AttributeSet ArgAttrs = Attrs.getParamAttributes(Idx); in visitCallBase()
DFunction.cpp161 static Type *getMemoryParamAllocType(AttributeSet ParamAttrs, Type *ArgTy) { in getMemoryParamAllocType()
179 AttributeSet ParamAttrs = in getPassPointeeByValueCopySize()
187 AttributeSet ParamAttrs = in getPointeeInMemoryValueType()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/
DDeadArgumentElimination.cpp189 SmallVector<AttributeSet, 8> ArgAttrs; in DeleteDeadVarargs()
750 SmallVector<AttributeSet, 8> ArgAttrVec; in RemoveDeadStuffFromFunction()
853 AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs); in RemoveDeadStuffFromFunction()
856 AttributeSet FnAttrs = PAL.getFnAttributes().removeAttribute( in RemoveDeadStuffFromFunction()
894 AttributeSet RetAttrs = AttributeSet::get(F->getContext(), RAttrs); in RemoveDeadStuffFromFunction()
906 AttributeSet Attrs = CallPAL.getParamAttributes(Pi); in RemoveDeadStuffFromFunction()
913 ArgAttrVec.push_back(AttributeSet::get( in RemoveDeadStuffFromFunction()
933 AttributeSet FnAttrs = CallPAL.getFnAttributes().removeAttribute( in RemoveDeadStuffFromFunction()
DArgumentPromotion.cpp133 SmallVector<AttributeSet, 8> ArgAttrVec; in doPromotion()
146 AttributeSet()); in doPromotion()
202 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
278 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
321 ArgAttrVec.push_back(AttributeSet()); in doPromotion()
DAttributor.cpp2146 SmallVector<AttributeSet, 16> NewArgumentAttributes; in rewriteFunctionSignatures()
2156 AttributeSet()); in rewriteFunctionSignatures()
2219 SmallVector<AttributeSet, 16> NewArgOperandAttributes; in rewriteFunctionSignatures()
2233 AttributeSet()); in rewriteFunctionSignatures()
DWholeProgramDevirt.cpp1359 std::vector<AttributeSet> NewArgAttrs; in applyICallBranchFunnel()
1360 NewArgAttrs.push_back(AttributeSet::get( in applyICallBranchFunnel()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp476 SmallVector<AttributeSet, 4> NewArgAttrs; in promoteCall()
496 NewArgAttrs.push_back(AttributeSet::get(Ctx, ArgAttrs)); in promoteCall()
515 AttributeSet::get(Ctx, RAttrs), in promoteCall()
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()
DCloneFunction.cpp112 SmallVector<AttributeSet, 4> NewArgAttrs(NewFunc->arg_size()); in CloneFunctionInto()
DInlineFunction.cpp2101 SmallVector<AttributeSet, 4> VarArgsAttrs; in InlineFunction()
2134 SmallVector<AttributeSet, 8> ArgAttrs; in InlineFunction()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/AsmParser/
DLLParser.h484 AttributeSet Attrs;
485 ParamInfo(LocTy loc, Value *v, AttributeSet attrs) in ParamInfo()
538 AttributeSet Attrs;
540 ArgInfo(LocTy L, Type *ty, AttributeSet Attr, const std::string &N) in ArgInfo()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/
DValueEnumerator.h52 using IndexAndAttrSet = std::pair<unsigned, AttributeSet>;
DValueEnumerator.cpp1040 AttributeSet AS = PAL.getAttributes(i); in EnumerateAttributes()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyLowerEmscriptenEHSjLj.cpp447 SmallVector<AttributeSet, 8> ArgAttributes; in wrapInvoke()
451 ArgAttributes.push_back(AttributeSet()); in wrapInvoke()
471 AttributeList::get(C, AttributeSet::get(C, FnAttrs), in wrapInvoke()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/AsmParser/
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()
1211 GV->setAttributes(AttributeSet::get(Context, Attrs)); in parseGlobal()
2389 ArgLoc, V, AttributeSet::get(V->getContext(), ArgAttrs))); in parseParameterList()
2520 AttributeSet::get(ArgTy->getContext(), Attrs), in parseArgumentList()
2556 AttributeSet::get(ArgTy->getContext(), Attrs), in parseArgumentList()
5563 SmallVector<AttributeSet, 8> Attrs; in parseFunctionHeader()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp2709 SmallVector<AttributeSet, 8> ArgAttrs; in transformConstExprCastCall()
2734 ArgAttrs.push_back(AttributeSet::get(Ctx, AB)); in transformConstExprCastCall()
2743 ArgAttrs.push_back(AttributeSet()); in transformConstExprCastCall()
2768 AttributeSet FnAttrs = CallerPAL.getFnAttributes(); in transformConstExprCastCall()
2776 Ctx, FnAttrs, AttributeSet::get(Ctx, RAttrs), ArgAttrs); in transformConstExprCastCall()
2863 AttributeSet NestAttr; in transformCallThroughTrampoline()
2869 AttributeSet AS = NestAttrs.getParamAttributes(NestArgNo); in transformCallThroughTrampoline()
2880 std::vector<AttributeSet> NewArgAttrs; in transformCallThroughTrampoline()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
DTargetLibraryInfo.h241 AttributeSet FnAttrs = (*F)->getAttributes().getFnAttributes();
/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
DCGCall.cpp2312 SmallVector<llvm::AttributeSet, 4> ArgAttrs(IRFunctionArgs.totalIRArgs()); in ConstructAttributeList()
2323 llvm::AttributeSet::get(getLLVMContext(), SRETAttrs); in ConstructAttributeList()
2331 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2369 ArgAttrs[IRArgs.first] = llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2384 llvm::AttributeSet::get( in ConstructAttributeList()
2534 llvm::AttributeSet::get(getLLVMContext(), Attrs); in ConstructAttributeList()
2540 getLLVMContext(), llvm::AttributeSet::get(getLLVMContext(), FuncAttrs), in ConstructAttributeList()
2541 llvm::AttributeSet::get(getLLVMContext(), RetAttrs), ArgAttrs); in ConstructAttributeList()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
DDWARFVerifier.cpp262 SmallDenseSet<uint16_t> AttributeSet; in verifyAbbrevSection() local
264 auto Result = AttributeSet.insert(Attribute.Attr); in verifyAbbrevSection()

12