#include "mlir/IR/BuiltinAttributes.h" #include "mlir/IR/BuiltinTypes.h" #include "mlir/IR/Location.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/OperationSupport.h" mlir::MLIRContext Context; auto Identifier = …; mlir::OperationName OperationName("FooOp", &Context); mlir::Type Type(nullptr); mlir::Type IndexType = …; mlir::Type IntegerType = …; mlir::Type FloatType = …; mlir::Type MemRefType = …; mlir::Type UnrankedMemRefType = …; mlir::Type VectorType = …; mlir::Type TupleType = …; mlir::detail::OutOfLineOpResult Result(FloatType, 42); mlir::Value Value(&Result); auto UnknownLoc = …; auto FileLineColLoc = …; auto OpaqueLoc = …; auto NameLoc = …; auto CallSiteLoc = …; auto FusedLoc = …; mlir::Attribute UnitAttr = …; mlir::Attribute FloatAttr = …; mlir::Attribute IntegerAttr = …; mlir::Attribute TypeAttr = …; mlir::Attribute ArrayAttr = …; mlir::Attribute StringAttr = …; mlir::Attribute ElementsAttr = …; int main() { … }