Replace operands now injected in OpBuilder
These are now injected automatically. PiperOrigin-RevId: 336356284
This commit is contained in:
parent
f6af1fc134
commit
ab4c03b84b
|
@ -340,11 +340,10 @@ def HLO_StaticMemRefCastOp: Op<LHLO_Dialect, "static_memref_cast",
|
||||||
let arguments = (ins Arg<LHLO_Buffer, "", []>:$operand);
|
let arguments = (ins Arg<LHLO_Buffer, "", []>:$operand);
|
||||||
let results = (outs Res<LHLO_Buffer, "", []>:$result);
|
let results = (outs Res<LHLO_Buffer, "", []>:$result);
|
||||||
|
|
||||||
let builders = [OpBuilder<
|
let builders = [OpBuilder<"MemRefType resultType, Value operand",
|
||||||
"OpBuilder &builder, OperationState &result, MemRefType resultType, " #
|
[{
|
||||||
"Value operand", [{
|
$_state.addOperands(operand);
|
||||||
result.addOperands(operand);
|
$_state.types.push_back(resultType);
|
||||||
result.types.push_back(resultType);
|
|
||||||
}]>];
|
}]>];
|
||||||
|
|
||||||
let extraClassDeclaration = [{
|
let extraClassDeclaration = [{
|
||||||
|
@ -386,13 +385,13 @@ def HLO_DynamicMemRefCastOp: Op<LHLO_Dialect, "dynamic_memref_cast",
|
||||||
);
|
);
|
||||||
let results = (outs Res<LHLO_Buffer, "", []>:$result);
|
let results = (outs Res<LHLO_Buffer, "", []>:$result);
|
||||||
|
|
||||||
let builders = [OpBuilder<
|
let builders = [
|
||||||
"OpBuilder &builder, OperationState &result, MemRefType resultType, " #
|
OpBuilder<"MemRefType resultType, Value operand, ValueRange sizes, "
|
||||||
"Value operand, ValueRange sizes, ValueRange strides", [{
|
"ValueRange strides", [{
|
||||||
result.addOperands(operand);
|
$_state.addOperands(operand);
|
||||||
result.addOperands(sizes);
|
$_state.addOperands(sizes);
|
||||||
result.addOperands(strides);
|
$_state.addOperands(strides);
|
||||||
result.types.push_back(resultType);
|
$_state.types.push_back(resultType);
|
||||||
}]>];
|
}]>];
|
||||||
|
|
||||||
let extraClassDeclaration = [{
|
let extraClassDeclaration = [{
|
||||||
|
@ -815,8 +814,7 @@ def FusionOp : LHLO_Op<"fusion", [SingleBlockImplicitTerminator<"TerminatorOp">]
|
||||||
|
|
||||||
let skipDefaultBuilders = 1;
|
let skipDefaultBuilders = 1;
|
||||||
let builders = [
|
let builders = [
|
||||||
OpBuilder<"OpBuilder &builder, OperationState &result, "
|
OpBuilder<"ArrayRef<NamedAttribute> attributes">
|
||||||
"ArrayRef<NamedAttribute> attributes">
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -826,9 +824,8 @@ def TerminatorOp :
|
||||||
let description = [{
|
let description = [{
|
||||||
Terminator operation for the LHLO dialect.
|
Terminator operation for the LHLO dialect.
|
||||||
}];
|
}];
|
||||||
let builders = [OpBuilder<
|
let builders = [OpBuilder<"ValueRange operands",
|
||||||
"OpBuilder &b, OperationState &result, ValueRange operands",
|
[{ build($_builder, $_state, llvm::None, operands, llvm::None); }]
|
||||||
[{ build(b, result, llvm::None, operands, llvm::None); }]
|
|
||||||
>];
|
>];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue