Lines Matching refs:init
28 static StringRef getValueAsString(const Init *init) { in getValueAsString() argument
29 if (const auto *str = dyn_cast<StringInit>(init)) in getValueAsString()
49 Attribute::Attribute(const DefInit *init) : Attribute(init->getDef()) {} in Attribute() argument
65 const auto *init = def->getValueInit("storageType"); in getStorageType() local
66 auto type = getValueAsString(init); in getStorageType()
73 const auto *init = def->getValueInit("returnType"); in getReturnType() local
74 return getValueAsString(init); in getReturnType()
86 const auto *init = def->getValueInit("convertFromStorage"); in getConvertFromStorageCall() local
87 return getValueAsString(init); in getConvertFromStorageCall()
91 const auto *init = def->getValueInit("constBuilderCall"); in isConstBuildable() local
92 return !getValueAsString(init).empty(); in isConstBuildable()
96 const auto *init = def->getValueInit("constBuilderCall"); in getConstBuilderTemplate() local
97 return getValueAsString(init); in getConstBuilderTemplate()
109 const auto *init = def->getValueInit("defaultValue"); in hasDefaultValue() local
110 return !getValueAsString(init).empty(); in hasDefaultValue()
114 const auto *init = def->getValueInit("defaultValue"); in getDefaultValue() local
115 return getValueAsString(init); in getDefaultValue()
135 if (DefInit *init = dyn_cast<DefInit>(record->getValue())) in getDialect() local
136 return Dialect(init->getDef()); in getDialect()
141 ConstantAttr::ConstantAttr(const DefInit *init) : def(init->getDef()) { in ConstantAttr() argument
159 EnumAttrCase::EnumAttrCase(const llvm::DefInit *init) in EnumAttrCase() argument
160 : EnumAttrCase(init->getDef()) {} in EnumAttrCase()
181 EnumAttr::EnumAttr(const llvm::DefInit *init) : EnumAttr(init->getDef()) {} in EnumAttr() argument
227 for (const llvm::Init *init : *inits) { in getAllCases()
228 cases.push_back(EnumAttrCase(cast<llvm::DefInit>(init))); in getAllCases()
242 StructFieldAttr::StructFieldAttr(const llvm::DefInit *init) in StructFieldAttr() argument
243 : StructFieldAttr(init->getDef()) {} in StructFieldAttr()
250 auto init = def->getValueInit("type"); in getType() local
251 return Attribute(cast<llvm::DefInit>(init)); in getType()
259 StructAttr::StructAttr(const llvm::DefInit *init) in StructAttr() argument
260 : StructAttr(init->getDef()) {} in StructAttr()
277 for (const llvm::Init *init : *inits) { in getAllFields()
278 attributes.emplace_back(cast<llvm::DefInit>(init)); in getAllFields()