forked from OSchip/llvm-project
Create an FPOW SDNode opcode def in the target independent .td file rather than in a specific backend.
llvm-svn: 182450
This commit is contained in:
parent
f8114cf621
commit
616852848a
|
@ -376,6 +376,7 @@ def fsqrt : SDNode<"ISD::FSQRT" , SDTFPUnaryOp>;
|
||||||
def fsin : SDNode<"ISD::FSIN" , SDTFPUnaryOp>;
|
def fsin : SDNode<"ISD::FSIN" , SDTFPUnaryOp>;
|
||||||
def fcos : SDNode<"ISD::FCOS" , SDTFPUnaryOp>;
|
def fcos : SDNode<"ISD::FCOS" , SDTFPUnaryOp>;
|
||||||
def fexp2 : SDNode<"ISD::FEXP2" , SDTFPUnaryOp>;
|
def fexp2 : SDNode<"ISD::FEXP2" , SDTFPUnaryOp>;
|
||||||
|
def fpow : SDNode<"ISD::FPOW" , SDTFPBinOp>;
|
||||||
def flog2 : SDNode<"ISD::FLOG2" , SDTFPUnaryOp>;
|
def flog2 : SDNode<"ISD::FLOG2" , SDTFPUnaryOp>;
|
||||||
def frint : SDNode<"ISD::FRINT" , SDTFPUnaryOp>;
|
def frint : SDNode<"ISD::FRINT" , SDTFPUnaryOp>;
|
||||||
def ftrunc : SDNode<"ISD::FTRUNC" , SDTFPUnaryOp>;
|
def ftrunc : SDNode<"ISD::FTRUNC" , SDTFPUnaryOp>;
|
||||||
|
|
|
@ -65,8 +65,6 @@ def AMDGPUumin : SDNode<"AMDGPUISD::UMIN", SDTIntBinOp,
|
||||||
// e is rounding error
|
// e is rounding error
|
||||||
def AMDGPUurecip : SDNode<"AMDGPUISD::URECIP", SDTIntUnaryOp>;
|
def AMDGPUurecip : SDNode<"AMDGPUISD::URECIP", SDTIntUnaryOp>;
|
||||||
|
|
||||||
def fpow : SDNode<"ISD::FPOW", SDTFPBinOp>;
|
|
||||||
|
|
||||||
def AMDGPUregister_load : SDNode<"AMDGPUISD::REGISTER_LOAD",
|
def AMDGPUregister_load : SDNode<"AMDGPUISD::REGISTER_LOAD",
|
||||||
SDTypeProfile<1, 2, [SDTCisPtrTy<1>, SDTCisInt<2>]>,
|
SDTypeProfile<1, 2, [SDTCisPtrTy<1>, SDTCisInt<2>]>,
|
||||||
[SDNPHasChain, SDNPMayLoad]>;
|
[SDNPHasChain, SDNPMayLoad]>;
|
||||||
|
|
Loading…
Reference in New Issue