forked from OSchip/llvm-project
Add tablegen aliases for OpTraits ResultsAreFloatLike and SameOperandsAndResultShape
Startblock: cl/239891224 is submitted PiperOrigin-RevId: 239899356
This commit is contained in:
parent
fdef161592
commit
94764ee036
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue