mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-20 13:04:00 +00:00
AMDGPU: Remove unused tablegen utilities
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
510ec2063e
commit
2e8e1e63de
@ -338,36 +338,6 @@ def si_atomic_cmp_swap_glue : SDNode <"ISD::ATOMIC_CMP_SWAP", SDTAtomic3,
|
||||
|
||||
defm si_atomic_cmp_swap : AtomicCmpSwapLocal <si_atomic_cmp_swap_glue>;
|
||||
|
||||
// Transformation function, extract the lower 32bit of a 64bit immediate
|
||||
def LO32 : SDNodeXForm<imm, [{
|
||||
return CurDAG->getTargetConstant(N->getZExtValue() & 0xffffffff, SDLoc(N),
|
||||
MVT::i32);
|
||||
}]>;
|
||||
|
||||
def LO32f : SDNodeXForm<fpimm, [{
|
||||
APInt V = N->getValueAPF().bitcastToAPInt().trunc(32);
|
||||
return CurDAG->getTargetConstantFP(APFloat(APFloat::IEEEsingle, V), MVT::f32);
|
||||
}]>;
|
||||
|
||||
// Transformation function, extract the upper 32bit of a 64bit immediate
|
||||
def HI32 : SDNodeXForm<imm, [{
|
||||
return CurDAG->getTargetConstant(N->getZExtValue() >> 32, SDLoc(N), MVT::i32);
|
||||
}]>;
|
||||
|
||||
def HI32f : SDNodeXForm<fpimm, [{
|
||||
APInt V = N->getValueAPF().bitcastToAPInt().lshr(32).trunc(32);
|
||||
return CurDAG->getTargetConstantFP(APFloat(APFloat::IEEEsingle, V), SDLoc(N),
|
||||
MVT::f32);
|
||||
}]>;
|
||||
|
||||
def IMM8bitDWORD : PatLeaf <(imm),
|
||||
[{return (N->getZExtValue() & ~0x3FC) == 0;}]
|
||||
>;
|
||||
|
||||
def as_dword_i32imm : SDNodeXForm<imm, [{
|
||||
return CurDAG->getTargetConstant(N->getZExtValue() >> 2, SDLoc(N), MVT::i32);
|
||||
}]>;
|
||||
|
||||
def as_i1imm : SDNodeXForm<imm, [{
|
||||
return CurDAG->getTargetConstant(N->getZExtValue(), SDLoc(N), MVT::i1);
|
||||
}]>;
|
||||
@ -400,18 +370,6 @@ return CurDAG->getTargetConstant(
|
||||
N->getValueAPF().bitcastToAPInt().getZExtValue(), SDLoc(N), MVT::i64);
|
||||
}]>;
|
||||
|
||||
def IMM8bit : PatLeaf <(imm),
|
||||
[{return isUInt<8>(N->getZExtValue());}]
|
||||
>;
|
||||
|
||||
def IMM12bit : PatLeaf <(imm),
|
||||
[{return isUInt<12>(N->getZExtValue());}]
|
||||
>;
|
||||
|
||||
def IMM16bit : PatLeaf <(imm),
|
||||
[{return isUInt<16>(N->getZExtValue());}]
|
||||
>;
|
||||
|
||||
def SIMM16bit : PatLeaf <(imm),
|
||||
[{return isInt<16>(N->getSExtValue());}]
|
||||
>;
|
||||
@ -420,10 +378,6 @@ def IMM20bit : PatLeaf <(imm),
|
||||
[{return isUInt<20>(N->getZExtValue());}]
|
||||
>;
|
||||
|
||||
def IMM32bit : PatLeaf <(imm),
|
||||
[{return isUInt<32>(N->getZExtValue());}]
|
||||
>;
|
||||
|
||||
def mubuf_vaddr_offset : PatFrag<
|
||||
(ops node:$ptr, node:$offset, node:$imm_offset),
|
||||
(add (add node:$ptr, node:$offset), node:$imm_offset)
|
||||
@ -456,10 +410,6 @@ class SGPRImm <dag frag> : PatLeaf<frag, [{
|
||||
// Custom Operands
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
def FRAMEri32 : Operand<iPTR> {
|
||||
let MIOperandInfo = (ops i32:$ptr, i32imm:$index);
|
||||
}
|
||||
|
||||
def SoppBrTarget : AsmOperandClass {
|
||||
let Name = "SoppBrTarget";
|
||||
let ParserMethod = "parseSOppBrTarget";
|
||||
|
Loading…
x
Reference in New Issue
Block a user