Add tablegen aliases for OpTraits ResultsAreFloatLike and SameOperandsAndResultShape

Startblock:
  cl/239891224 is submitted
PiperOrigin-RevId: 239899356
This commit is contained in:
Geoffrey Martin-Noble 2019-03-22 18:03:58 -07:00 committed by jpienaar
parent fdef161592
commit 94764ee036
1 changed files with 4 additions and 0 deletions

View File

@ -472,8 +472,12 @@ class PredOpTrait<string d, Pred p> : OpTrait {
def Broadcastable : NativeOpTrait<"BroadcastableTwoOperandsOneResult">;
// X op Y == Y op X
def Commutative : NativeOpTrait<"IsCommutative">;
// op results are float or vectors/tensors thereof
def FloatLikeResults : NativeOpTrait<"ResultsAreFloatLike">;
// op has no side effect
def NoSideEffect : NativeOpTrait<"HasNoSideEffect">;
// op has same operand and result shape
def SameValueShape : NativeOpTrait<"SameOperandsAndResultShape">;
// op has the same operand and result type
def SameValueType : NativeOpTrait<"SameOperandsAndResultType">;
// op is a terminator