[MLIR][HLO] Use `#` operator for list concatenation in C/HLO definitions

PiperOrigin-RevId: 373110780
This commit is contained in:
A. Unique TensorFlower 2021-05-11 02:52:35 -07:00 committed by TensorFlow MLIR Team
parent 920f261262
commit 6191b3e528
1 changed files with 5 additions and 7 deletions

View File

@ -76,11 +76,9 @@ class HLOClient_Op<string mnemonic, list<OpTrait> traits> :
//===----------------------------------------------------------------------===//
class HLOClient_BroadcastBinaryElementwiseOp<
string mnemonic, list<OpTrait> traits> :
HLOClient_Op<mnemonic,
!listconcat(traits, [
DeclareOpInterfaceMethods<InferShapedTypeOpInterface,
["inferReturnTypeComponents", "reifyReturnTypeShapes"]>])> {
string mnemonic, list<OpTrait> traits> : HLOClient_Op<mnemonic, traits # [
DeclareOpInterfaceMethods<InferShapedTypeOpInterface, [
"inferReturnTypeComponents", "reifyReturnTypeShapes"]>]> {
let arguments = (ins
HLO_Tensor:$lhs,
HLO_Tensor:$rhs,
@ -411,8 +409,8 @@ def HLOClient_BroadcastComplexOp : HLOClient_BroadcastBinaryElementwiseOp<
class HLOClient_UnaryElementwiseOp<string mnemonic, list<OpTrait> traits,
Type ArgTensorType, Type ResultTensorType> : HLOClient_Op<mnemonic,
!listconcat(traits, [InferFusibilityOpInterface, NoSideEffect,
SameOperandsAndResultShape])> {
traits # [InferFusibilityOpInterface, NoSideEffect,
SameOperandsAndResultShape]> {
let arguments = (ins ArgTensorType:$operand);
let results = (outs ResultTensorType:$result);