def fircg_Dialect : Dialect {
let name = "fircg";
let cppNamespace = "::fir::cg";
+ let emitAccessorPrefix = kEmitAccessorPrefix_Raw;
}
// Base class for FIR CG operations.
def fir_Dialect : Dialect {
let name = "fir";
let cppNamespace = "::fir";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
let useDefaultTypePrinterParser = 0;
let useDefaultAttributePrinterParser = 0;
}
* `kEmitAccessorPrefix_Both`
- Emit with **and** without prefix.
-All new dialects are strongly encouraged to use the `kEmitAccessorPrefix_Prefixed` value, as
-the `Raw` form is deprecated and in the process of being removed.
+All new dialects are strongly encouraged to use the default `kEmitAccessorPrefix_Prefixed`
+value, as the `Raw` form is deprecated and in the process of being removed.
Note: Remove this section when all dialects have been switched to the new accessor form.
working inside of the LLVM source tree.
}];
let cppNamespace = "::mlir::standalone";
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
def Toy_Dialect : Dialect {
let name = "toy";
let cppNamespace = "::mlir::toy";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for toy dialect operations. This operation inherits from the base
def Toy_Dialect : Dialect {
let name = "toy";
let cppNamespace = "::mlir::toy";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for toy dialect operations. This operation inherits from the base
def Toy_Dialect : Dialect {
let name = "toy";
let cppNamespace = "::mlir::toy";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for toy dialect operations. This operation inherits from the base
def Toy_Dialect : Dialect {
let name = "toy";
let cppNamespace = "::mlir::toy";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for toy dialect operations. This operation inherits from the base
def Toy_Dialect : Dialect {
let name = "toy";
let cppNamespace = "::mlir::toy";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for toy dialect operations. This operation inherits from the base
def Toy_Dialect : Dialect {
let name = "toy";
let cppNamespace = "::mlir::toy";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
// We set this bit to generate a declaration of the `materializeConstant`
// method so that we can materialize constants for our toy operations.
that will eventually be executed on AMD hardware.
}];
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
let useDefaultAttributePrinterParser = 1;
}
For details, see the Intel documentation:
https://software.intel.com/content/www/us/en/develop/articles/intel-sdm.html
}];
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
let cppNamespace = "mlir";
let hasConstantMaterializer = 1;
let dependentDialects = ["arith::ArithmeticDialect"];
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for Affine dialect ops.
}];
let hasConstantMaterializer = 1;
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// The predicate indicates the type of the comparison to perform:
// Note: this does not need to depend on LLVMDialect as long as functions in
// this dialect (such as canonicalization) do not produce entities belonging
// to the LLVMDialect (ops or types).
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
This dialect contains the definitions necessary to target specific Arm SVE
scalable vector operations.
}];
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
kEscapeAttrName = "bufferization.escape";
}];
let hasOperationAttrVerify = 1;
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
#endif // BUFFERIZATION_BASE
let dependentDialects = ["arith::ArithmeticDialect"];
let hasConstantMaterializer = 1;
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
let useDefaultAttributePrinterParser = 1;
}
let name = "cf";
let cppNamespace = "::mlir::cf";
let dependentDialects = ["arith::ArithmeticDialect"];
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
let description = [{
This dialect contains low-level, i.e. non-region based, control flow
constructs. These constructs generally represent control flow directly
}];
let useDefaultAttributePrinterParser = 1;
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
def DLTI_DataLayoutEntryAttr : DialectAttr<
let hasConstantMaterializer = 1;
let useDefaultTypePrinterParser = 1;
let useDefaultAttributePrinterParser = 1;
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
#endif // MLIR_DIALECT_EMITC_IR_EMITCBASE
let cppNamespace = "::mlir::func";
let dependentDialects = ["cf::ControlFlowDialect"];
let hasConstantMaterializer = 1;
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for Func dialect ops.
/// of some deeply-nested aggregate types in the program.
ThreadLocalCache<DenseSet<Type>> compatibleTypes;
}];
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
}];
let useDefaultAttributePrinterParser = 1;
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
/// functions.
static StringRef getKernelFuncAttrName() { return "rocdl.kernel"; }
}];
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
let useDefaultAttributePrinterParser = 1;
let useDefaultTypePrinterParser = 1;
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
#endif // MLPROGRAM_BASE
```
}];
let hasConstantMaterializer = 1;
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
#endif // MATH_BASE
}];
let useDefaultTypePrinterParser = 1;
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
/// Device-side synchronization token.
/// to rewrite the IR after a successful match.
static StringRef getRewriterModuleName() { return "rewriters"; }
}];
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
let cppNamespace = "::mlir::quant";
let useDefaultTypePrinterParser = 1;
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
let name = "scf";
let cppNamespace = "::mlir::scf";
let dependentDialects = ["arith::ArithmeticDialect"];
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for SCF dialect ops.
let useDefaultTypePrinterParser = 1;
let hasConstantMaterializer = 1;
let hasOperationAttrVerify = 1;
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
class Shape_Type<string name, string typeMnemonic> : TypeDef<ShapeDialect, name> {
}];
let useDefaultAttributePrinterParser = 1;
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
#endif // SPARSETENSOR_BASE
"arith::ArithmeticDialect",
"complex::ComplexDialect",
];
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
#endif // TENSOR_BASE
let cppNamespace = "mlir::tosa";
let hasConstantMaterializer = 1;
let useDefaultAttributePrinterParser = 1;
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
let name = "transform";
let cppNamespace = "::mlir::transform";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
let dependentDialects = [
"::mlir::pdl::PDLDialect",
let useDefaultAttributePrinterParser = 1;
let hasConstantMaterializer = 1;
let dependentDialects = ["arith::ArithmeticDialect"];
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
// Base class for Vector dialect ops.
def X86Vector_Dialect : Dialect {
let name = "x86vector";
let cppNamespace = "::mlir::x86vector";
-
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
//===----------------------------------------------------------------------===//
public:
}];
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
#endif // BUILTIN_BASE
// leaving UpperCamel unchanged while also converting lowerCamel to
// UpperCamel) and prefixed with `get` or `set` depending on if it is a getter
// or setter.
- int emitAccessorPrefix = kEmitAccessorPrefix_Raw;
+ int emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
// If this dialect can be extended at runtime with new operations or types.
bit isExtensible = 0;
shouldSkip = true;
}
if (newName == "getType") {
- if (op.getNumResults() == 0)
+ if (op.getNumResults() != 1)
return false;
shouldSkip = true;
}
def Test_Dialect : Dialect {
let name = "test";
let cppNamespace = "::test";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
let hasCanonicalizer = 1;
let hasConstantMaterializer = 1;
let hasOperationAttrVerify = 1;
def Test2_Dialect : Dialect {
let name = "test2";
let cppNamespace = "foobar2";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
def AgetOp : Op<Test2_Dialect, "a_get_op", []> {
let arguments = (ins
def Test_Dialect : Dialect {
let name = "test";
let cppNamespace = "NS";
- let emitAccessorPrefix = kEmitAccessorPrefix_Prefixed;
}
class NS_Op<string mnemonic, list<Trait> traits> :
Op<Test_Dialect, mnemonic, traits>;