Go to the documentation of this file. 1 #ifndef LLVM_TABLEGEN_DIRECTIVEEMITTER_H
2 #define LLVM_TABLEGEN_DIRECTIVEEMITTER_H
15 const auto &DirectiveLanguages = getDirectiveLanguages();
16 Def = DirectiveLanguages[0];
63 std::vector<Record *> getDirectiveLanguages()
const {
84 std::string
N =
Name.str();
144 std::string
N =
Name.str();
148 C = llvm::toUpper(C);
150 }
else if (
C ==
'_') {
161 return Def->getValueAsString(
"enumClauseValue");
165 return Def->getValueAsListOfDefs(
"allowedClauseValues");
173 return Def->getValueAsString(
"defaultValue");
This is an optimization pass for GlobalISel generic memory operations.
StringRef getDirectivePrefix() const
int64_t getMinVersion() const
StringRef getAlternativeName() const
std::string getFormattedParserClassName()
std::vector< Record * > getValueAsListOfDefs(StringRef FieldName) const
This method looks up the specified field and returns its value as a vector of records,...
std::string getFormattedName()
StringRef getRecordName() const
std::vector< Record * > getAllowedOnceClauses() const
static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New)
BaseRecord(const llvm::Record *Def)
Directive(const llvm::Record *Def)
std::vector< Record * > getRequiredClauses() const
(vector float) vec_cmpeq(*A, *B) C
StringRef getName() const
std::vector< Record * > getClauses() const
VersionedClause(const llvm::Record *Def)
StringRef getClangClass() const
StringRef getDefaultValue() const
StringRef getEnumName() const
bool HasValidityErrors() const
void erase_value(Container &C, ValueType V)
Wrapper function to remove a value from a container:
ClauseVal(const llvm::Record *Def)
StringRef getFlangClauseBaseClass() const
bool isValueOptional() const
StringRef getName() const
std::vector< Record * > getAllDerivedDefinitions(StringRef ClassName) const
Get all the concrete records that inherit from the one specified class.
StringRef - Represent a constant reference to a string, i.e.
if(llvm_vc STREQUAL "") set(fake_version_inc "$
std::vector< Record * > getDirectives() const
std::vector< Record * > getClauseVals() const
StringRef getCppNamespace() const
StringRef getClauseEnumSetClass() const
bool isUserVisible() const
bool hasMakeEnumAvailableInNamespace() const
std::vector< Record * > getAllowedExclusiveClauses() const
instcombine should handle this transform
int64_t getMaxVersion() const
Clause(const llvm::Record *Def)
bool hasEnableBitmaskEnumInNamespace() const
StringRef getName() const
bool getValueAsBit(StringRef FieldName) const
This method looks up the specified field and returns its value as a bit, throwing an exception if the...
DirectiveLanguage(const llvm::RecordKeeper &Records)
StringRef getFlangClass() const
StringRef getValueAsString(StringRef FieldName) const
This method looks up the specified field and returns its value as a string, throwing an exception if ...
std::vector< Record * > getAllowedClauses() const
StringRef getClausePrefix() const