Searched refs:ConstantAttr (Results 1 – 12 of 12) sorted by relevance
/external/llvm-project/mlir/lib/TableGen/ |
D | Attribute.cpp | 141 ConstantAttr::ConstantAttr(const DefInit *init) : def(init->getDef()) { in ConstantAttr() function in ConstantAttr 146 Attribute ConstantAttr::getAttribute() const { in getAttribute() 150 StringRef ConstantAttr::getConstantValue() const { in getConstantValue()
|
D | Pattern.cpp | 67 ConstantAttr DagLeaf::getAsConstantAttr() const { in getAsConstantAttr() 69 return ConstantAttr(cast<llvm::DefInit>(def)); in getAsConstantAttr()
|
/external/llvm-project/mlir/include/mlir/TableGen/ |
D | Attribute.h | 121 class ConstantAttr { 123 explicit ConstantAttr(const llvm::DefInit *init);
|
D | Pattern.h | 89 ConstantAttr getAsConstantAttr() const;
|
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | prepare_patterns.td | 43 class TFi32<int v> : ConstantAttr<I32ElementsAttr, !cast<string>(v)>; 140 (ConstantOp ConstantAttr<I32ElementsAttr, "{0}">)), 146 (ConstantOp ConstantAttr<I32ElementsAttr, "{0}">),
|
D | legalize_patterns.td | 84 def IsDataFormatNHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "NHWC">; 150 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "1.0f">), 216 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "1.0f">), 243 (TFL_GatherOp $params, $indices, ConstantAttr<I32Attr, "0">)>; 250 ConstantAttr<I64Attr, "0">:$batch_dims), 441 (ConstantOp ConstantAttr<I32VectorElementsAttr<4>, "{2, 0, 1, 3}">)),
|
D | optimize_patterns.td | 258 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">), 261 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "0.166666666f">), 271 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">), 273 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "0.166666666f">), 286 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "3.0f">), 289 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "0.166666666f">), 595 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "1.0f">)), 601 (ConstantOp ConstantAttr<RankedF32ElementsAttr<[]>, "2.0f">)),
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | canonicalize.td | 100 (TF_BiasAddOp $arg0, $arg1, ConstantAttr<TF_ConvnetDataFormatAttr, "NHWC">)>; 143 (TF_ConstOp ConstantAttr<RankedF32ElementsAttr<[]>, "1.0f">))),
|
D | optimize.td | 19 def IsDataFormatNHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "NHWC">;
|
D | lower_tf.td | 119 ConstantAttr<I64Attr, "1">),
|
/external/llvm-project/mlir/test/lib/Dialect/Test/ |
D | TestOps.td | 248 ConstantAttr<RankedF32ElementsAttr<[2]>, "{3.0f, 4.0f}">:$f32attr, 251 ConstantAttr<RankedF32ElementsAttr<[2]>, "{5.0f, 6.0f}">:$f32attr, 528 (I32ElementsAttrOp ConstantAttr<I32ElementsAttr, "0">), 616 def : Pat<(OpG $input), (OpB $input, ConstantAttr<I32Attr, "20">:$attr)>; 617 def : Pat<(OpG (OpG $input)), (OpB $input, ConstantAttr<I32Attr, "34">:$attr)>; 738 ConstantAttr<I64Attr, "42">, 744 ConstantAttr<I64Attr, "24">, 979 def : Pat<(OpC $input), (OpB $input, ConstantAttr<I32Attr, "17">:$attr)>; 1178 (MixedVResultOp3:$results__0 ConstantAttr<I32Attr, "2">), 1181 ConstantAttr<I32Attr, "2">)>;
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | OpBase.td | 1549 class ConstantAttr<Attr attribute, string val> : AttrConstraint< 1556 class ConstF32Attr<string val> : ConstantAttr<F32Attr, val>; 1557 def ConstBoolAttrFalse : ConstantAttr<BoolAttr, "false">; 1558 def ConstBoolAttrTrue : ConstantAttr<BoolAttr, "true">; 1559 def ConstUnitAttr : ConstantAttr<UnitAttr, "unit">;
|