Home
last modified time | relevance | path

Searched refs:Attrs (Results 1 – 25 of 173) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrFMA3Info.cpp23 #define FMA3GROUP(Name, Suf, Attrs) \ argument
24 { { X86::Name##132##Suf, X86::Name##213##Suf, X86::Name##231##Suf }, Attrs },
26 #define FMA3GROUP_MASKED(Name, Suf, Attrs) \ argument
27 FMA3GROUP(Name, Suf, Attrs) \
28 FMA3GROUP(Name, Suf##k, Attrs | X86InstrFMA3Group::KMergeMasked) \
29 FMA3GROUP(Name, Suf##kz, Attrs | X86InstrFMA3Group::KZeroMasked)
31 #define FMA3GROUP_PACKED_WIDTHS_Z(Name, Suf, Attrs) \ argument
32 FMA3GROUP_MASKED(Name, Suf##Z128m, Attrs) \
33 FMA3GROUP_MASKED(Name, Suf##Z128r, Attrs) \
34 FMA3GROUP_MASKED(Name, Suf##Z256m, Attrs) \
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGLoopInfo.cpp36 MDNode *LoopInfo::createPipeliningMetadata(const LoopAttributes &Attrs, in createPipeliningMetadata() argument
42 if (Attrs.PipelineDisabled) in createPipeliningMetadata()
44 else if (Attrs.PipelineInitiationInterval != 0) in createPipeliningMetadata()
64 if (Attrs.PipelineInitiationInterval > 0) { in createPipeliningMetadata()
68 llvm::Type::getInt32Ty(Ctx), Attrs.PipelineInitiationInterval))}; in createPipeliningMetadata()
81 LoopInfo::createPartialUnrollMetadata(const LoopAttributes &Attrs, in createPartialUnrollMetadata() argument
87 if (Attrs.UnrollEnable == LoopAttributes::Disable) in createPartialUnrollMetadata()
89 else if (Attrs.UnrollEnable == LoopAttributes::Full) in createPartialUnrollMetadata()
91 else if (Attrs.UnrollEnable != LoopAttributes::Unspecified || in createPartialUnrollMetadata()
92 Attrs.UnrollCount != 0) in createPartialUnrollMetadata()
[all …]
H A DCGLoopInfo.h93 LoopInfo(llvm::BasicBlock *Header, const LoopAttributes &Attrs,
104 const LoopAttributes &getAttributes() const { return Attrs; } in getAttributes()
123 LoopAttributes Attrs; variable
159 createPipeliningMetadata(const LoopAttributes &Attrs,
163 createPartialUnrollMetadata(const LoopAttributes &Attrs,
167 createUnrollAndJamMetadata(const LoopAttributes &Attrs,
171 createLoopVectorizeMetadata(const LoopAttributes &Attrs,
175 createLoopDistributeMetadata(const LoopAttributes &Attrs,
179 createFullUnrollMetadata(const LoopAttributes &Attrs,
196 llvm::MDNode *createMetadata(const LoopAttributes &Attrs,
[all …]
H A DCGCall.cpp1785 SmallVector<StringRef, 4> Attrs; in AddAttributesFromOMPAssumes() local
1788 AA->getAssumption().split(Attrs, ","); in AddAttributesFromOMPAssumes()
1790 if (!Attrs.empty()) in AddAttributesFromOMPAssumes()
1792 llvm::join(Attrs.begin(), Attrs.end(), ",")); in AddAttributesFromOMPAssumes()
2281 llvm::AttributeList &Attrs) { in AdjustMemoryAttribute() argument
2282 if (Attrs.getMemoryEffects().getModRef() == llvm::ModRefInfo::NoModRef) { in AdjustMemoryAttribute()
2283 Attrs = Attrs.removeFnAttribute(getLLVMContext(), llvm::Attribute::Memory); in AdjustMemoryAttribute()
2286 Attrs = Attrs.addFnAttribute(getLLVMContext(), MemoryAttr); in AdjustMemoryAttribute()
2628 llvm::AttrBuilder Attrs(getLLVMContext()); in ConstructAttributeList() local
2629 Attrs.addInAllocaAttr(FI.getArgStruct()); in ConstructAttributeList()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64SMEAttributes.cpp61 SMEAttrs::SMEAttrs(const AttributeList &Attrs) { in SMEAttrs() argument
63 if (Attrs.hasFnAttr("aarch64_pstate_sm_enabled")) in SMEAttrs()
65 if (Attrs.hasFnAttr("aarch64_pstate_sm_compatible")) in SMEAttrs()
67 if (Attrs.hasFnAttr("aarch64_pstate_sm_body")) in SMEAttrs()
69 if (Attrs.hasFnAttr("aarch64_in_za")) in SMEAttrs()
71 if (Attrs.hasFnAttr("aarch64_out_za")) in SMEAttrs()
73 if (Attrs.hasFnAttr("aarch64_inout_za")) in SMEAttrs()
75 if (Attrs.hasFnAttr("aarch64_preserves_za")) in SMEAttrs()
77 if (Attrs.hasFnAttr("aarch64_new_za")) in SMEAttrs()
79 if (Attrs.hasFnAttr("aarch64_in_zt0")) in SMEAttrs()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeRecord.h41 uint16_t Attrs = 0; member
50 : Attrs(static_cast<uint16_t>(Access)) {} in MemberAttributes()
53 Attrs = static_cast<uint16_t>(Access); in MemberAttributes()
54 Attrs |= (static_cast<uint16_t>(Kind) << MethodKindShift); in MemberAttributes()
55 Attrs |= static_cast<uint16_t>(Flags); in MemberAttributes()
60 return MemberAccess(unsigned(Attrs) & unsigned(MethodOptions::AccessMask)); in getAccess()
66 (unsigned(Attrs) & unsigned(MethodOptions::MethodKindMask)) >> in getMethodKind()
74 unsigned(Attrs) & in getFlags()
284 PointerRecord(TypeIndex ReferentType, uint32_t Attrs) in PointerRecord() argument
286 Attrs(Attrs) {} in PointerRecord()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DGlobalVariable.h42 AttributeSet Attrs; variable
194 Attrs = Attrs.addAttribute(getContext(), Kind);
199 Attrs = Attrs.addAttribute(getContext(), Kind, Val); in hasAttribute()
204 return Attrs.hasAttribute(Kind); in hasAttribute()
209 return Attrs.hasAttribute(Kind); in hasAttributes()
214 return Attrs.hasAttributes(); in getAttribute()
219 return Attrs.getAttribute(Kind); in getAttribute()
224 return Attrs in getAttributes()
[all...]
H A DInstrTypes.h1250 AttributeList Attrs; ///< parameter attributes for callable
1255 : Instruction(std::forward<ArgsTy>(Args)...), Attrs(A), FTy(FT) {}
1542 AttributeList getAttributes() const { return Attrs; }
1546 void setAttributes(AttributeList A) { Attrs = A; }
1565 Attrs = Attrs.addAttributeAtIndex(getContext(), i, Kind);
1570 Attrs = Attrs.addAttributeAtIndex(getContext(), i, Attr);
1575 Attrs = Attrs.addFnAttribute(getContext(), Kind);
1580 Attrs = Attrs.addFnAttribute(getContext(), Attr);
1585 Attrs = Attrs.addRetAttribute(getContext(), Kind);
1590 Attrs = Attrs.addRetAttribute(getContext(), Attr);
[all …]
H A DAttributeMask.h30 std::bitset<Attribute::EndAttrKinds> Attrs; variable
47 Attrs[Val] = true; in addAttribute()
69 return Attrs[A]; in contains()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp846 AttributeSet AttributeSet::get(LLVMContext &C, ArrayRef<Attribute> Attrs) { in get() argument
847 return AttributeSet(AttributeSetNode::get(C, Attrs)); in get()
895 const AttributeMask &Attrs) const { in removeAttributes()
898 if (!B.overlaps(Attrs)) in removeAttributes()
901 B.remove(Attrs); in removeAttributes()
1028 AttributeSetNode::AttributeSetNode(ArrayRef<Attribute> Attrs) in AttributeSetNode() argument
1029 : NumAttrs(Attrs.size()) { in AttributeSetNode()
1031 llvm::copy(Attrs, getTrailingObjects<Attribute>()); in AttributeSetNode()
1042 ArrayRef<Attribute> Attrs) { in get() argument
1043 SmallVector<Attribute, 8> SortedAttrs(Attrs.begin(), Attrs.end()); in get()
[all …]
H A DVerifier.cpp611 void verifyTailCCMustTailAttrs(const AttrBuilder &Attrs, StringRef Context);
613 bool verifyAttributeCount(AttributeList Attrs, unsigned Params);
614 void verifyAttributeTypes(AttributeSet Attrs, const Value *V);
615 void verifyParameterAttrs(AttributeSet Attrs, Type *Ty, const Value *V);
616 void checkUnsignedBaseTenFuncAttr(AttributeList Attrs, StringRef Attr,
618 void verifyFunctionAttrs(FunctionType *FT, AttributeList Attrs,
1895 void Verifier::verifyAttributeTypes(AttributeSet Attrs, const Value *V) { in verifyAttributeTypes() argument
1896 for (Attribute A : Attrs) { in verifyAttributeTypes()
1923 void Verifier::verifyParameterAttrs(AttributeSet Attrs, Type *Ty, in verifyParameterAttrs() argument
1925 if (!Attrs.hasAttributes()) in verifyParameterAttrs()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DTypeIndexDiscovery.cpp17 static inline MethodKind getMethodKind(uint16_t Attrs) { in getMethodKind() argument
18 Attrs &= uint16_t(MethodOptions::MethodKindMask); in getMethodKind()
19 Attrs >>= 2; in getMethodKind()
20 return MethodKind(Attrs); in getMethodKind()
23 static inline bool isIntroVirtual(uint16_t Attrs) { in isIntroVirtual() argument
24 MethodKind MK = getMethodKind(Attrs); in isIntroVirtual()
29 static inline PointerMode getPointerMode(uint32_t Attrs) { in getPointerMode() argument
30 return static_cast<PointerMode>((Attrs >> PointerRecord::PointerModeShift) & in getPointerMode()
34 static inline bool isMemberPointer(uint32_t Attrs) { in isMemberPointer() argument
35 PointerMode Mode = getPointerMode(Attrs); in isMemberPointer()
85 uint16_t Attrs = support::endian::read16le(Content.data()); handleMethodOverloadList() local
148 uint16_t Attrs = support::endian::read16le(Data.drop_front(2).data()); handleOneMethod() local
269 uint32_t Attrs = support::endian::read32le(Content.drop_front(4).data()); handlePointer() local
[all...]
H A DTypeRecordMapping.cpp145 std::string Attrs = getMemberAttributes( in operator ()() local
147 error(IO.mapInteger(Method.Attrs.Attrs, "Attrs: " + Attrs)); in operator ()()
414 error(IO.mapInteger(Record.Attrs, Attr)); in visitKnownRecord()
637 std::string Attrs = getMemberAttributes( in visitKnownMember() local
639 error(IO.mapInteger(Record.Attrs.Attrs, "Attrs: " + Attrs)); in visitKnownMember()
648 std::string Attrs = getMemberAttributes( in visitKnownMember() local
650 error(IO.mapInteger(Record.Attrs.Attrs, "Attrs: " + Attrs)); in visitKnownMember()
661 std::string Attrs = getMemberAttributes( in visitKnownMember() local
663 error(IO.mapInteger(Record.Attrs.Attrs, "Attrs: " + Attrs)); in visitKnownMember()
700 std::string Attrs = getMemberAttributes( in visitKnownMember() local
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1691 DeclGroupPtrTy ParseDeclOrFunctionDefInternal(ParsedAttributes &Attrs,
1803 ParsedAttributes &Attrs);
2097 ParsedAttributes &Attrs);
2178 StmtResult ParseLabeledStatement(ParsedAttributes &Attrs,
2209 ParsedAttributes &Attrs);
2479 ParsedAttributes &Attrs,
2501 DeclSpecContext DSC, ParsedAttributes &Attrs);
2793 ParsedAttributes *Attrs = nullptr);
2819 void CheckMisplacedCXX11Attribute(ParsedAttributes &Attrs, in CheckMisplacedCXX11Attribute() argument
2825 DiagnoseMisplacedCXX11Attribute(Attrs, CorrectLocation); in CheckMisplacedCXX11Attribute()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DParsedAttr.cpp94 for (ParsedAttr *AL : cur.Attrs) in reclaimPool()
99 Attrs.insert(Attrs.end(), pool.Attrs.begin(), pool.Attrs.end()); in takePool()
100 pool.Attrs.clear(); in takePool()
106 Attrs.insert(Attrs.end(), List.AttrList.begin(), List.AttrList.end()); in takeFrom()
H A DSemaStmtAttr.cpp385 static void CheckForDuplicateLoopAttrs(Sema &S, ArrayRef<const Attr *> Attrs) { in CheckForDuplicateLoopAttrs() argument
387 const auto *FirstItr = std::find_if(Attrs.begin(), Attrs.end(), FindFunc); in CheckForDuplicateLoopAttrs()
389 if (FirstItr == Attrs.end()) // no attributes found in CheckForDuplicateLoopAttrs()
402 while (Attrs.end() != (LastFoundItr = std::find_if(LastFoundItr + 1, in CheckForDuplicateLoopAttrs()
403 Attrs.end(), FindFunc))) { in CheckForDuplicateLoopAttrs()
439 const SmallVectorImpl<const Attr *> &Attrs) { in CheckForIncompatibleAttributes() argument
442 if (Attrs.size() < 2) in CheckForIncompatibleAttributes()
446 if (!DiagnoseMutualExclusions(S, Attrs)) in CheckForIncompatibleAttributes()
477 for (const auto *I : Attrs) { in CheckForIncompatibleAttributes()
696 bool Sema::CheckRebuiltStmtAttributes(ArrayRef<const Attr *> Attrs) { in CheckRebuiltStmtAttributes() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDIEHash.cpp111 void DIEHash::collectAttributes(const DIE &Die, DIEAttrs &Attrs) { in collectAttributes() argument
120 Attrs.NAME = V; \ in collectAttributes()
336 void DIEHash::hashAttributes(const DIEAttrs &Attrs, dwarf::Tag Tag) { in hashAttributes() argument
339 if (Attrs.NAME) \ in hashAttributes()
340 hashAttribute(Attrs.NAME, Tag); \ in hashAttributes()
348 DIEAttrs Attrs = {}; in addAttributes() local
349 collectAttributes(Die, Attrs); in addAttributes()
350 hashAttributes(Attrs, Die.getTag()); in addAttributes()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGPrinter.cpp116 const std::string &Attrs = Graph->getGraphAttrs(N); in getNodeAttributes() local
117 if (!Attrs.empty()) { in getNodeAttributes()
118 if (Attrs.find("shape=") == std::string::npos) in getNodeAttributes()
119 return std::string("shape=Mrecord,") + Attrs; in getNodeAttributes()
121 return Attrs; in getNodeAttributes()
191 void SelectionDAG::setGraphAttrs(const SDNode *N, const char *Attrs) { in setGraphAttrs() argument
193 NodeGraphAttrs[N] = Attrs; in setGraphAttrs()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp52 ParsedAttributes *Attrs) { in ParseTypeName() argument
59 if (Attrs) in ParseTypeName()
60 DS.addAttributes(*Attrs); in ParseTypeName()
66 if (Attrs) { in ParseTypeName()
74 Attrs->takeOneFrom(DS.getAttributes(), AL); in ParseTypeName()
133 void Parser::ParseAttributes(unsigned WhichAttrKinds, ParsedAttributes &Attrs, in ParseAttributes() argument
141 MoreToParse |= MaybeParseCXX11Attributes(Attrs); in ParseAttributes()
143 MoreToParse |= MaybeParseGNUAttributes(Attrs, LateAttrs); in ParseAttributes()
145 MoreToParse |= MaybeParseMicrosoftDeclSpecs(Attrs); in ParseAttributes()
190 void Parser::ParseGNUAttributes(ParsedAttributes &Attrs, in ParseGNUAttributes() argument
[all …]
H A DParser.cpp811 Parser::ParseExternalDeclaration(ParsedAttributes &Attrs, in ParseExternalDeclaration() argument
870 return ParseOpenMPDeclarativeDirectiveWithExtDecl(AS, Attrs); in ParseExternalDeclaration()
892 Actions.ActOnEmptyDeclaration(getCurScope(), Attrs, Tok.getLocation()); in ParseExternalDeclaration()
906 return ParseExternalDeclaration(Attrs, DeclSpecAttrs); in ParseExternalDeclaration()
909 ProhibitAttributes(Attrs); in ParseExternalDeclaration()
934 return ParseObjCAtDirectives(Attrs, DeclSpecAttrs); in ParseExternalDeclaration()
968 ProhibitAttributes(Attrs); in ParseExternalDeclaration()
974 ProhibitAttributes(Attrs); in ParseExternalDeclaration()
990 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration()
998 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration()
[all …]
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangAttrEmitter.cpp176 std::vector<Record *> Attrs = Records.getAllDerivedDefinitions("Attr"); in getParsedAttrList() local
179 for (const auto *Attr : Attrs) { in getParsedAttrList()
1898 std::vector<Record *> Attrs = Records.getAllDerivedDefinitions("Attr"); in emitClangAttrLateParsedListImpl() local
1900 for (const auto *Attr : Attrs) { in emitClangAttrLateParsedListImpl()
2393 std::vector<Record *> Attrs = Records.getAllDerivedDefinitions("Attr"); in emitClangAttrTypeArgList() local
2395 for (const auto *Attr : Attrs) { in emitClangAttrTypeArgList()
2416 ParsedAttrMap Attrs = getParsedAttrList(Records); in emitClangAttrArgContextList() local
2417 for (const auto &I : Attrs) { in emitClangAttrArgContextList()
2478 std::vector<Record *> Attrs = Records.getAllDerivedDefinitions("Attr"); in emitClangAttrVariadicIdentifierArgList() local
2479 for (const auto *A : Attrs) { in emitClangAttrVariadicIdentifierArgList()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DX86FoldTablesEmitter.cpp102 std::string Attrs; in print() local
104 Attrs += "TB_FOLDED_LOAD|"; in print()
106 Attrs += "TB_FOLDED_STORE|"; in print()
108 Attrs += "TB_NO_REVERSE|"; in print()
110 Attrs += "TB_NO_FORWARD|"; in print()
112 Attrs += "TB_ALIGN_" + std::to_string(Alignment.value()) + "|"; in print()
117 Attrs += "TB_BCAST_W|"; in print()
120 Attrs += "TB_BCAST_D|"; in print()
123 Attrs += "TB_BCAST_Q|"; in print()
126 Attrs += "TB_BCAST_SS|"; in print()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DDWARFLinkerCompileUnit.h
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAMDGPUMetadata.cpp93 struct MappingTraits<Kernel::Attrs::Metadata> {
94 static void mapping(IO &YIO, Kernel::Attrs::Metadata &MD) { in mapping()
95 YIO.mapOptional(Kernel::Attrs::Key::ReqdWorkGroupSize, in mapping()
97 YIO.mapOptional(Kernel::Attrs::Key::WorkGroupSizeHint, in mapping()
99 YIO.mapOptional(Kernel::Attrs::Key::VecTypeHint, in mapping()
101 YIO.mapOptional(Kernel::Attrs::Key::RuntimeHandle, MD.mRuntimeHandle, in mapping()
189 YIO.mapOptional(Kernel::Key::Attrs, MD.mAttrs); in mapping()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp994 Attributes Attrs; in inferFrameworkModule() local
995 Attrs.IsSystem = IsSystem; in inferFrameworkModule()
996 return inferFrameworkModule(FrameworkDir, Attrs, Parent); in inferFrameworkModule()
1000 Attributes Attrs, Module *Parent) { in inferFrameworkModule() argument
1041 parseModuleMapFile(*ModMapFile, Attrs.IsSystem, *ParentDir); in inferFrameworkModule()
1057 Attrs.IsSystem |= inferred->second.Attrs.IsSystem; in inferFrameworkModule()
1058 Attrs.IsExternC |= inferred->second.Attrs.IsExternC; in inferFrameworkModule()
1059 Attrs.IsExhaustive |= inferred->second.Attrs.IsExhaustive; in inferFrameworkModule()
1060 Attrs.NoUndeclaredIncludes |= in inferFrameworkModule()
1061 inferred->second.Attrs.NoUndeclaredIncludes; in inferFrameworkModule()
[all …]

1234567