From ceae3bbf4dd5e3a6fc7e52fbce10d75abbc70af2 Mon Sep 17 00:00:00 2001 From: Scott Michel Date: Tue, 29 Jan 2008 02:16:57 +0000 Subject: Overhaul Cell SPU's addressing mode internals so that there are now only two addressing mode nodes, SPUaform and SPUindirect (vice the three previous ones, SPUaform, SPUdform and SPUxform). This improves code somewhat because we now avoid using reg+reg addressing when it can be avoided. It also simplifies the address selection logic, which was the main point for doing this. Also, for various global variables that would be loaded using SPU's A-form addressing, prefer D-form offs[reg] addressing, keeping the base in a register if the variable is used more than once. llvm-svn: 46483 --- llvm/lib/Target/CellSPU/SPUISelLowering.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Target/CellSPU/SPUISelLowering.h') diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.h b/llvm/lib/Target/CellSPU/SPUISelLowering.h index d9e4e7ed4ed..916f2c931fc 100644 --- a/llvm/lib/Target/CellSPU/SPUISelLowering.h +++ b/llvm/lib/Target/CellSPU/SPUISelLowering.h @@ -32,8 +32,7 @@ namespace llvm { Lo, ///< Low address component (lower 16) PCRelAddr, ///< Program counter relative address AFormAddr, ///< A-form address (local store) - DFormAddr, ///< D-Form address "imm($r)" - XFormAddr, ///< X-Form address "$r($r)" + IndirectAddr, ///< D-Form "imm($r)" and X-form "$r($r)" LDRESULT, ///< Load result (value, chain) CALL, ///< CALL instruction -- cgit v1.2.3