15 #include "llvm/ADT/StringExtras.h"
23 auto builtInName = llvm::convertToSnakeFromCamelCase(
24 stringifyDecoration(spirv::Decoration::BuiltIn));
29 stringifyDecoration(spirv::Decoration::DescriptorSet));
30 auto bindingName = llvm::convertToSnakeFromCamelCase(
31 stringifyDecoration(spirv::Decoration::Binding));
static std::string bindingName()
Returns the string name of the Binding decoration.
static std::string descriptorSetName()
Returns the string name of the DescriptorSet decoration.
virtual Builder & getBuilder() const =0
Return a builder which provides useful access to MLIRContext, global objects like types and attribute...
virtual ParseResult parseOptionalAttrDict(NamedAttrList &result)=0
Parse a named dictionary into 'result' if it is present.
virtual ParseResult parseOptionalKeyword(StringRef keyword)=0
Parse the given keyword if present.
virtual ParseResult parseRParen()=0
Parse a ) token.
virtual ParseResult parseLParen()=0
Parse a ( token.
virtual ParseResult parseComma()=0
Parse a , token.
virtual ParseResult parseAttribute(Attribute &result, Type type={})=0
Parse an arbitrary attribute of a given type and return it in result.
Attributes are known-constant values of operations.
IntegerType getIntegerType(unsigned width)
The OpAsmParser has methods for interacting with the asm parser: parsing things from it,...
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
ParseResult parseVariableDecorations(OpAsmParser &parser, OperationState &state)
This represents an operation in an abstracted form, suitable for use with the builder APIs.