Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [ARM] GlobalISel: Support global variables for RWPI | Diana Picus | 2017-09-05 | 1 | -0/+46 |
| | | | | | | | | | In RWPI code, globals that are not read-only are accessed relative to the SB register (R9). This is achieved by explicitly generating an ADD instruction between SB and an offset that we either load from a constant pool or movw + movt into a register. llvm-svn: 312521 | ||||
* | [ARM] GlobalISel: Support ROPI global variables | Diana Picus | 2017-09-01 | 1 | -0/+76 |
In the ROPI relocation model, read-only variables are accessed relative to the PC. We use the (MOV|LDRLIT)_ga_pcrel pseudoinstructions for this. llvm-svn: 312323 |