Searched refs:EnumAttrCase (Results 1 – 8 of 8) sorted by relevance
154 EnumAttrCase::EnumAttrCase(const llvm::Record *record) : Attribute(record) { in EnumAttrCase() function in EnumAttrCase159 EnumAttrCase::EnumAttrCase(const llvm::DefInit *init) in EnumAttrCase() function in EnumAttrCase160 : EnumAttrCase(init->getDef()) {} in EnumAttrCase()162 bool EnumAttrCase::isStrCase() const { return isSubClassOf("StrEnumAttrCase"); } in isStrCase()164 StringRef EnumAttrCase::getSymbol() const { in getSymbol()168 StringRef EnumAttrCase::getStr() const { return def->getValueAsString("str"); } in getStr()170 int64_t EnumAttrCase::getValue() const { return def->getValueAsInt("value"); } in getValue()172 const llvm::Record &EnumAttrCase::getDef() const { return *def; } in getDef()221 std::vector<EnumAttrCase> EnumAttr::getAllCases() const { in getAllCases()224 std::vector<EnumAttrCase> cases; in getAllCases()[all …]
72 EnumAttrCase DagLeaf::getAsEnumAttrCase() const { in getAsEnumAttrCase()74 return EnumAttrCase(cast<llvm::DefInit>(def)); in getAsEnumAttrCase()
139 class EnumAttrCase : public Attribute {141 explicit EnumAttrCase(const llvm::Record *record);142 explicit EnumAttrCase(const llvm::DefInit *init);204 std::vector<EnumAttrCase> getAllCases() const;
93 EnumAttrCase getAsEnumAttrCase() const;
177 class LLVMEnumAttrCase : public tblgen::EnumAttrCase {179 using tblgen::EnumAttrCase::EnumAttrCase;182 explicit LLVMEnumAttrCase(const tblgen::EnumAttrCase &other) in LLVMEnumAttrCase()183 : tblgen::EnumAttrCase(&other.getDef()) {} in LLVMEnumAttrCase()
45 using mlir::tblgen::EnumAttrCase;308 std::vector<EnumAttrCase> enumerants = enumAttr.getAllCases(); in emitAvailabilityQueryForIntEnum()312 llvm::StringMap<llvm::SmallVector<std::pair<EnumAttrCase, Availability>, 1>> in emitAvailabilityQueryForIntEnum()317 for (const EnumAttrCase &enumerant : enumerants) in emitAvailabilityQueryForIntEnum()330 EnumAttrCase enumerant = caseSpecPair.first; in emitAvailabilityQueryForIntEnum()350 std::vector<EnumAttrCase> enumerants = enumAttr.getAllCases(); in emitAvailabilityQueryForBitEnum()354 llvm::StringMap<llvm::SmallVector<std::pair<EnumAttrCase, Availability>, 1>> in emitAvailabilityQueryForBitEnum()359 for (const EnumAttrCase &enumerant : enumerants) in emitAvailabilityQueryForBitEnum()377 EnumAttrCase enumerant = caseSpecPair.first; in emitAvailabilityQueryForBitEnum()406 for (const EnumAttrCase &enumerant : enumerants) in emitEnumDecl()[all …]
30 using mlir::tblgen::EnumAttrCase;42 const std::vector<EnumAttrCase> &enumerants, in emitEnumClass()121 static llvm::Optional<EnumAttrCase>122 getAllBitsUnsetCase(llvm::ArrayRef<EnumAttrCase> cases) { in getAllBitsUnsetCase()286 if (llvm::any_of(enumerants, [](EnumAttrCase enumerant) { in emitUnderlyingToSymFnForIntEnum()356 if (llvm::all_of(enumerants, [](EnumAttrCase enumerant) { in emitEnumDecl()
1273 cases via their corresponding `*EnumAttrCase`. With this, ODS is able to