Added initial support for small sections on Mips.

Added gp_rel relocations to support addressing small section contents.
Added command line to specify small section threshold in bytes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bruno Cardoso Lopes
2008-07-21 18:52:34 +00:00
parent 6116a73da4
commit 91fd532eb9
7 changed files with 86 additions and 28 deletions

View File

@@ -37,6 +37,9 @@ namespace llvm {
// No relation with Mips Lo register
Lo,
// Handle gp_rel (small data/bss sections) relocation.
GPRel,
// Select CC Pseudo Instruction
SelectCC,
@@ -83,7 +86,7 @@ namespace llvm {
SDOperand LowerCCCCallTo(SDOperand Op, SelectionDAG &DAG, unsigned CC);
SDNode *LowerCallResult(SDOperand Chain, SDOperand InFlag, SDNode*TheCall,
unsigned CallingConv, SelectionDAG &DAG);
SDOperand getReturnAddressFrameIndex(SelectionDAG &DAG);
bool IsGlobalInSmallSection(GlobalValue *GV);
// Lower Operand specifics
SDOperand LowerRET(SDOperand Op, SelectionDAG &DAG);