mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
R600/SI: Remove some unused TableGen classes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229150 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f7803d51f4
commit
1f85e3b090
@ -640,31 +640,12 @@ class getVOPSrc1ForVT<ValueType VT> {
|
||||
RegisterClass ret = !if(!eq(VT.Size, 32), VGPR_32, VReg_64);
|
||||
}
|
||||
|
||||
// Returns the register classes for the source arguments of a VOP[12C]
|
||||
// instruction for the given SrcVTs.
|
||||
class getInRC32 <list<ValueType> SrcVT> {
|
||||
list<DAGOperand> ret = [
|
||||
getVOPSrc0ForVT<SrcVT[0]>.ret,
|
||||
getVOPSrc1ForVT<SrcVT[1]>.ret
|
||||
];
|
||||
}
|
||||
|
||||
// Returns the register class to use for sources of VOP3 instructions for the
|
||||
// given VT.
|
||||
class getVOP3SrcForVT<ValueType VT> {
|
||||
RegisterOperand ret = !if(!eq(VT.Size, 32), VCSrc_32, VCSrc_64);
|
||||
}
|
||||
|
||||
// Returns the register classes for the source arguments of a VOP3
|
||||
// instruction for the given SrcVTs.
|
||||
class getInRC64 <list<ValueType> SrcVT> {
|
||||
list<DAGOperand> ret = [
|
||||
getVOP3SrcForVT<SrcVT[0]>.ret,
|
||||
getVOP3SrcForVT<SrcVT[1]>.ret,
|
||||
getVOP3SrcForVT<SrcVT[2]>.ret
|
||||
];
|
||||
}
|
||||
|
||||
// Returns 1 if the source arguments have modifiers, 0 if they do not.
|
||||
class hasModifiers<ValueType SrcVT> {
|
||||
bit ret = !if(!eq(SrcVT.Value, f32.Value), 1,
|
||||
|
Loading…
Reference in New Issue
Block a user