summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/tiny_model.ll
Commit message (Collapse)AuthorAgeFilesLines
* [AArch64] Optimise load(adr address) to ldr addressDavid Green2018-08-301-10/+5
| | | | | | | | | Providing that the load is known to be 4 byte aligned, we can optimise a ldr(adr address) to just ldr address. Differential Revision: https://reviews.llvm.org/D51030 llvm-svn: 341058
* [AArch64] Add Tiny Code Model for AArch64David Green2018-08-221-0/+421
This adds the plumbing for the Tiny code model for the AArch64 backend. This, instead of loading addresses through the normal ADRP;ADD pair used in the Small model, uses a single ADR. The 21 bit range of an ADR means that the code and its statically defined symbols need to be within 1MB of each other. This makes it mostly interesting for embedded applications where we want to fit as much as we can in as small a space as possible. Differential Revision: https://reviews.llvm.org/D49673 llvm-svn: 340397
OpenPOWER on IntegriCloud