[XLA/GPU] Migrate nested reduce emitter to take LMHLO.
PiperOrigin-RevId: 343388053
This commit is contained in:
parent
303181924c
commit
bae7c7bd2b
|
@ -197,11 +197,10 @@ def LHLO_XorOp : LHLO_BinaryElementwiseOp<"xor", LHLO_PredOrIntBuffer>, BASE_HLO
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// TODO(b/139813999): specify required function signature in a type-safe way.
|
||||
//
|
||||
// The region `body` may return lmhlo.TerminatorOp or mhlo.ReturnOp. We are
|
||||
// moving towards mhlo.ReturnOp, but some code that needs cleanup still assumes lmhlo.TerminatorOp.
|
||||
// TODO(timshen): cleanup lmhlo.TerminatorOp.
|
||||
def LHLO_ReduceOp: LHLO_Op<"reduce", [SameVariadicOperandSize]>, BASE_HLO_ReduceOp {
|
||||
def LHLO_ReduceOp: LHLO_Op<"reduce", [
|
||||
SameVariadicOperandSize,
|
||||
SingleBlockImplicitTerminator<"TerminatorOp">
|
||||
]>, BASE_HLO_ReduceOp {
|
||||
let arguments = (ins
|
||||
Arg<Variadic<LHLO_Buffer>, "", [MemRead]>:$operands,
|
||||
Arg<Variadic<LHLO_Buffer>, "", [MemRead]>:$init_values,
|
||||
|
|
Loading…
Reference in New Issue