Home
last modified time | relevance | path

Searched refs:ConstantAttr (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/mlir/lib/TableGen/
DAttribute.cpp141 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()
DPattern.cpp67 ConstantAttr DagLeaf::getAsConstantAttr() const { in getAsConstantAttr()
69 return ConstantAttr(cast<llvm::DefInit>(def)); in getAsConstantAttr()
/external/llvm-project/mlir/include/mlir/TableGen/
DAttribute.h121 class ConstantAttr {
123 explicit ConstantAttr(const llvm::DefInit *init);
DPattern.h89 ConstantAttr getAsConstantAttr() const;
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_patterns.td43 class TFi32<int v> : ConstantAttr<I32ElementsAttr, !cast<string>(v)>;
140 (ConstantOp ConstantAttr<I32ElementsAttr, "{0}">)),
146 (ConstantOp ConstantAttr<I32ElementsAttr, "{0}">),
Dlegalize_patterns.td84 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}">)),
Doptimize_patterns.td258 (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/
Dcanonicalize.td100 (TF_BiasAddOp $arg0, $arg1, ConstantAttr<TF_ConvnetDataFormatAttr, "NHWC">)>;
143 (TF_ConstOp ConstantAttr<RankedF32ElementsAttr<[]>, "1.0f">))),
Doptimize.td19 def IsDataFormatNHWC : ConstantAttr<TF_ConvnetDataFormatAttr, "NHWC">;
Dlower_tf.td119 ConstantAttr<I64Attr, "1">),
/external/llvm-project/mlir/test/lib/Dialect/Test/
DTestOps.td248 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/
DOpBase.td1549 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">;