llvm-6502/lib
Jack Carter 2f68b311a1 Initial assembler implementation of Mips load address macro
This patch provides initial implementation of load address 
macro instruction for Mips. We have implemented two kinds 
of expansions with their variations depending on the size 
of immediate operand:

 1) load address with immediate value directly:
    * la d,j => addiu d,$zero,j   (for -32768 <= j <= 65535)
    * la d,j => lui d,hi16(j)
                ori d,d,lo16(j)   (for any other 32 bit value of j)

 2) load load address with register offset value
    * la d,j(s) => addiu d,s,j     (for -32768 <= j <= 65535)
    * la d,j(s) => lui d,hi16(j)   (for any other 32 bit value of j)
                   ori d,d,lo16(j)
                   addu d,d,s

This patch does not cover the case when the address is loaded 
from the value of the label or function.

Contributer: Vladimir Medic


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165561 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-09 23:29:45 +00:00
..
Analysis Use the attribute enums to query if a function has an attribute. 2012-10-09 21:49:51 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Use the enum value of the attributes when removing them from the attributes builder. 2012-10-09 09:17:28 +00:00
Bitcode Use method to query if there are attributes. 2012-10-04 07:19:46 +00:00
CodeGen Use the attribute enums to query if a parameter has an attribute. 2012-10-09 21:38:14 +00:00
DebugInfo Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION. 2012-09-18 02:01:41 +00:00
ExecutionEngine Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC Whitespace. 2012-10-09 20:15:02 +00:00
Object Reverting r 160419. 2012-07-19 21:43:55 +00:00
Support Enable response files in all tools. Patch by Liu, Yaxun (Sam). I have simplified 2012-10-09 19:52:10 +00:00
TableGen tblgen: Rename handleDependencies -> createDependencyFile 2012-10-09 20:39:28 +00:00
Target Initial assembler implementation of Mips load address macro 2012-10-09 23:29:45 +00:00
Transforms Use the attribute enums to query if a parameter has an attribute. 2012-10-09 21:38:14 +00:00
VMCore Use the attribute enums to query if a function has an attribute. 2012-10-09 21:49:51 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile