diff options
author | Tom Stellard <[email protected]> | 2012-07-26 14:30:23 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-08-15 18:35:25 +0000 |
commit | 3aaa209293a281e103ef71e3578fad042972e092 (patch) | |
tree | 1a7e3557ac03276cccb10ca0ab0521714ba5f530 /src/gallium/drivers/radeon/SIInstructions.td | |
parent | 40c41fe890e53d99afb4e2c3fbf10043081edd9e (diff) |
radeon/llvm: Lower loads from USE_SGPR adddress space during DAG lowering
Diffstat (limited to 'src/gallium/drivers/radeon/SIInstructions.td')
-rw-r--r-- | src/gallium/drivers/radeon/SIInstructions.td | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td index aad2ade10ce..152d7356a91 100644 --- a/src/gallium/drivers/radeon/SIInstructions.td +++ b/src/gallium/drivers/radeon/SIInstructions.td @@ -7,19 +7,6 @@ // //===----------------------------------------------------------------------===// -def load_user_sgpr : PatFrag<(ops node:$ptr), - (load node:$ptr), - [{ - const Value *Src = cast<LoadSDNode>(N)->getSrcValue(); - if (Src) { - PointerType * PT = dyn_cast<PointerType>(Src->getType()); - return PT && PT->getAddressSpace() == AMDGPUAS::USER_SGPR_ADDRESS; - } - return false; - }] ->; - - def isSI : Predicate<"Subtarget.device()" "->getGeneration() == AMDGPUDeviceInfo::HD7XXX">; @@ -956,20 +943,6 @@ def SI_INTERP_CONST : InstSI < imm:$attr, SReg_32:$params))] >; -def USE_SGPR_32 : InstSI < - (outs SReg_32:$dst), - (ins i32imm:$src0), - "USE_SGPR_32", - [(set (i32 SReg_32:$dst), (load_user_sgpr imm:$src0))] ->; - -def USE_SGPR_64 : InstSI < - (outs SReg_64:$dst), - (ins i32imm:$src0), - "USE_SGPR_64", - [(set (i64 SReg_64:$dst), (load_user_sgpr imm:$src0))] ->; - } // end usesCustomInserter // SI Psuedo branch instructions. These are used by the CFG structurizer pass |