Add AArch64 as an experimental target.
authorTim Northover <Tim.Northover@arm.com>
Thu, 31 Jan 2013 12:12:40 +0000 (12:12 +0000)
committerTim Northover <Tim.Northover@arm.com>
Thu, 31 Jan 2013 12:12:40 +0000 (12:12 +0000)
commit72062f5744557e270a38192554c3126ea5f97434
treeae6e4c8abb4e0572745e7849b4948c58fea3e8d0
parentd72b4d321e317327330e1e82d0f652d4e237c171
Add AArch64 as an experimental target.

This patch adds support for AArch64 (ARM's 64-bit architecture) to
LLVM in the "experimental" category. Currently, it won't be built
unless requested explicitly.

This initial commit should have support for:
    + Assembly of all scalar (i.e. non-NEON, non-Crypto) instructions
      (except the late addition CRC instructions).
    + CodeGen features required for C++03 and C99.
    + Compilation for the "small" memory model: code+static data <
      4GB.
    + Absolute and position-independent code.
    + GNU-style (i.e. "__thread") TLS.
    + Debugging information.

The principal omission, currently, is performance tuning.

This patch excludes the NEON support also reviewed due to an outbreak of
batshit insanity in our legal department. That will be committed soon bringing
the changes to precisely what has been approved.

Further reviews would be gratefully received.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174054 91177308-0d34-0410-b5e6-96231b3b80d8
192 files changed:
autoconf/config.sub
autoconf/configure.ac
configure
docs/CompilerWriterInfo.rst
include/llvm/ADT/Triple.h
include/llvm/MC/MCExpr.h
include/llvm/MC/MCObjectWriter.h
include/llvm/Object/ELF.h
include/llvm/Support/ELF.h
lib/MC/MCELFStreamer.cpp
lib/MC/MCObjectFileInfo.cpp
lib/Support/Triple.cpp
lib/Target/AArch64/AArch64.h [new file with mode: 0644]
lib/Target/AArch64/AArch64.td [new file with mode: 0644]
lib/Target/AArch64/AArch64AsmPrinter.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64AsmPrinter.h [new file with mode: 0644]
lib/Target/AArch64/AArch64CallingConv.td [new file with mode: 0644]
lib/Target/AArch64/AArch64ConstantIslandPass.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64FrameLowering.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64FrameLowering.h [new file with mode: 0644]
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64ISelLowering.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64ISelLowering.h [new file with mode: 0644]
lib/Target/AArch64/AArch64InstrFormats.td [new file with mode: 0644]
lib/Target/AArch64/AArch64InstrInfo.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64InstrInfo.h [new file with mode: 0644]
lib/Target/AArch64/AArch64InstrInfo.td [new file with mode: 0644]
lib/Target/AArch64/AArch64MCInstLower.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64MachineFunctionInfo.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64MachineFunctionInfo.h [new file with mode: 0644]
lib/Target/AArch64/AArch64RegisterInfo.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64RegisterInfo.h [new file with mode: 0644]
lib/Target/AArch64/AArch64RegisterInfo.td [new file with mode: 0644]
lib/Target/AArch64/AArch64Schedule.td [new file with mode: 0644]
lib/Target/AArch64/AArch64SelectionDAGInfo.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64SelectionDAGInfo.h [new file with mode: 0644]
lib/Target/AArch64/AArch64Subtarget.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64Subtarget.h [new file with mode: 0644]
lib/Target/AArch64/AArch64TargetMachine.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64TargetMachine.h [new file with mode: 0644]
lib/Target/AArch64/AArch64TargetObjectFile.cpp [new file with mode: 0644]
lib/Target/AArch64/AArch64TargetObjectFile.h [new file with mode: 0644]
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp [new file with mode: 0644]
lib/Target/AArch64/AsmParser/CMakeLists.txt [new file with mode: 0644]
lib/Target/AArch64/AsmParser/LLVMBuild.txt [new file with mode: 0644]
lib/Target/AArch64/AsmParser/Makefile [new file with mode: 0644]
lib/Target/AArch64/CMakeLists.txt [new file with mode: 0644]
lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp [new file with mode: 0644]
lib/Target/AArch64/Disassembler/CMakeLists.txt [new file with mode: 0644]
lib/Target/AArch64/Disassembler/LLVMBuild.txt [new file with mode: 0644]
lib/Target/AArch64/Disassembler/Makefile [new file with mode: 0644]
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp [new file with mode: 0644]
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.h [new file with mode: 0644]
lib/Target/AArch64/InstPrinter/CMakeLists.txt [new file with mode: 0644]
lib/Target/AArch64/InstPrinter/LLVMBuild.txt [new file with mode: 0644]
lib/Target/AArch64/InstPrinter/Makefile [new file with mode: 0644]
lib/Target/AArch64/LLVMBuild.txt [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64BaseInfo.h [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.h [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64FixupKinds.h [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.h [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/CMakeLists.txt [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/LLVMBuild.txt [new file with mode: 0644]
lib/Target/AArch64/MCTargetDesc/Makefile [new file with mode: 0644]
lib/Target/AArch64/Makefile [new file with mode: 0644]
lib/Target/AArch64/README.txt [new file with mode: 0644]
lib/Target/AArch64/TargetInfo/AArch64TargetInfo.cpp [new file with mode: 0644]
lib/Target/AArch64/TargetInfo/CMakeLists.txt [new file with mode: 0644]
lib/Target/AArch64/TargetInfo/LLVMBuild.txt [new file with mode: 0644]
lib/Target/AArch64/TargetInfo/Makefile [new file with mode: 0644]
lib/Target/ARM/MCTargetDesc/ARMMCExpr.h
lib/Target/LLVMBuild.txt
projects/sample/autoconf/config.sub
projects/sample/autoconf/configure.ac
projects/sample/configure
test/CodeGen/AArch64/adc.ll [new file with mode: 0644]
test/CodeGen/AArch64/addsub-shifted.ll [new file with mode: 0644]
test/CodeGen/AArch64/addsub.ll [new file with mode: 0644]
test/CodeGen/AArch64/addsub_ext.ll [new file with mode: 0644]
test/CodeGen/AArch64/adrp-relocation.ll [new file with mode: 0644]
test/CodeGen/AArch64/alloca.ll [new file with mode: 0644]
test/CodeGen/AArch64/analyze-branch.ll [new file with mode: 0644]
test/CodeGen/AArch64/atomic-ops-not-barriers.ll [new file with mode: 0644]
test/CodeGen/AArch64/atomic-ops.ll [new file with mode: 0644]
test/CodeGen/AArch64/basic-pic.ll [new file with mode: 0644]
test/CodeGen/AArch64/bitfield-insert-0.ll [new file with mode: 0644]
test/CodeGen/AArch64/bitfield-insert.ll [new file with mode: 0644]
test/CodeGen/AArch64/bitfield.ll [new file with mode: 0644]
test/CodeGen/AArch64/blockaddress.ll [new file with mode: 0644]
test/CodeGen/AArch64/bool-loads.ll [new file with mode: 0644]
test/CodeGen/AArch64/breg.ll [new file with mode: 0644]
test/CodeGen/AArch64/callee-save.ll [new file with mode: 0644]
test/CodeGen/AArch64/compare-branch.ll [new file with mode: 0644]
test/CodeGen/AArch64/cond-sel.ll [new file with mode: 0644]
test/CodeGen/AArch64/directcond.ll [new file with mode: 0644]
test/CodeGen/AArch64/dp-3source.ll [new file with mode: 0644]
test/CodeGen/AArch64/dp1.ll [new file with mode: 0644]
test/CodeGen/AArch64/dp2.ll [new file with mode: 0644]
test/CodeGen/AArch64/elf-extern.ll [new file with mode: 0644]
test/CodeGen/AArch64/extract.ll [new file with mode: 0644]
test/CodeGen/AArch64/fastcc-reserved.ll [new file with mode: 0644]
test/CodeGen/AArch64/fastcc.ll [new file with mode: 0644]
test/CodeGen/AArch64/fcmp.ll [new file with mode: 0644]
test/CodeGen/AArch64/fcvt-fixed.ll [new file with mode: 0644]
test/CodeGen/AArch64/fcvt-int.ll [new file with mode: 0644]
test/CodeGen/AArch64/flags-multiuse.ll [new file with mode: 0644]
test/CodeGen/AArch64/floatdp_1source.ll [new file with mode: 0644]
test/CodeGen/AArch64/floatdp_2source.ll [new file with mode: 0644]
test/CodeGen/AArch64/fp-cond-sel.ll [new file with mode: 0644]
test/CodeGen/AArch64/fp-dp3.ll [new file with mode: 0644]
test/CodeGen/AArch64/fp128-folding.ll [new file with mode: 0644]
test/CodeGen/AArch64/fp128.ll [new file with mode: 0644]
test/CodeGen/AArch64/fpimm.ll [new file with mode: 0644]
test/CodeGen/AArch64/func-argpassing.ll [new file with mode: 0644]
test/CodeGen/AArch64/func-calls.ll [new file with mode: 0644]
test/CodeGen/AArch64/global-alignment.ll [new file with mode: 0644]
test/CodeGen/AArch64/got-abuse.ll [new file with mode: 0644]
test/CodeGen/AArch64/i128-align.ll [new file with mode: 0644]
test/CodeGen/AArch64/illegal-float-ops.ll [new file with mode: 0644]
test/CodeGen/AArch64/init-array.ll [new file with mode: 0644]
test/CodeGen/AArch64/inline-asm-constraints-badI.ll [new file with mode: 0644]
test/CodeGen/AArch64/inline-asm-constraints-badK.ll [new file with mode: 0644]
test/CodeGen/AArch64/inline-asm-constraints-badK2.ll [new file with mode: 0644]
test/CodeGen/AArch64/inline-asm-constraints-badL.ll [new file with mode: 0644]
test/CodeGen/AArch64/inline-asm-constraints.ll [new file with mode: 0644]
test/CodeGen/AArch64/inline-asm-modifiers.ll [new file with mode: 0644]
test/CodeGen/AArch64/jump-table.ll [new file with mode: 0644]
test/CodeGen/AArch64/large-frame.ll [new file with mode: 0644]
test/CodeGen/AArch64/ldst-regoffset.ll [new file with mode: 0644]
test/CodeGen/AArch64/ldst-unscaledimm.ll [new file with mode: 0644]
test/CodeGen/AArch64/ldst-unsignedimm.ll [new file with mode: 0644]
test/CodeGen/AArch64/lit.local.cfg [new file with mode: 0644]
test/CodeGen/AArch64/literal_pools.ll [new file with mode: 0644]
test/CodeGen/AArch64/local_vars.ll [new file with mode: 0644]
test/CodeGen/AArch64/logical-imm.ll [new file with mode: 0644]
test/CodeGen/AArch64/logical_shifted_reg.ll [new file with mode: 0644]
test/CodeGen/AArch64/logical_shifted_reg.s [new file with mode: 0644]
test/CodeGen/AArch64/movw-consts.ll [new file with mode: 0644]
test/CodeGen/AArch64/pic-eh-stubs.ll [new file with mode: 0644]
test/CodeGen/AArch64/regress-bitcast-formals.ll [new file with mode: 0644]
test/CodeGen/AArch64/regress-f128csel-flags.ll [new file with mode: 0644]
test/CodeGen/AArch64/regress-tail-livereg.ll [new file with mode: 0644]
test/CodeGen/AArch64/regress-tblgen-chains.ll [new file with mode: 0644]
test/CodeGen/AArch64/regress-w29-reserved-with-fp.ll [new file with mode: 0644]
test/CodeGen/AArch64/regress-wzr-allocatable.ll [new file with mode: 0644]
test/CodeGen/AArch64/setcc-takes-i32.ll [new file with mode: 0644]
test/CodeGen/AArch64/sibling-call.ll [new file with mode: 0644]
test/CodeGen/AArch64/tail-call.ll [new file with mode: 0644]
test/CodeGen/AArch64/tls-dynamic-together.ll [new file with mode: 0644]
test/CodeGen/AArch64/tls-dynamics.ll [new file with mode: 0644]
test/CodeGen/AArch64/tls-execs.ll [new file with mode: 0644]
test/CodeGen/AArch64/tst-br.ll [new file with mode: 0644]
test/CodeGen/AArch64/variadic.ll [new file with mode: 0644]
test/CodeGen/AArch64/zero-reg.ll [new file with mode: 0644]
test/DebugInfo/AArch64/cfi-frame.ll [new file with mode: 0644]
test/DebugInfo/AArch64/eh_frame.ll [new file with mode: 0644]
test/DebugInfo/AArch64/eh_frame_personality.ll [new file with mode: 0644]
test/DebugInfo/AArch64/lit.local.cfg [new file with mode: 0644]
test/DebugInfo/AArch64/variable-loc.ll [new file with mode: 0644]
test/MC/AArch64/basic-a64-diagnostics.s [new file with mode: 0644]
test/MC/AArch64/basic-a64-instructions.s [new file with mode: 0644]
test/MC/AArch64/elf-globaladdress.ll [new file with mode: 0644]
test/MC/AArch64/elf-objdump.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-addsubimm.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-condbr.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-ldrlit.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-ldstunsimm.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-movw.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-pcreladdressing.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-tstb.s [new file with mode: 0644]
test/MC/AArch64/elf-reloc-uncondbrimm.s [new file with mode: 0644]
test/MC/AArch64/lit.local.cfg [new file with mode: 0644]
test/MC/AArch64/mapping-across-sections.s [new file with mode: 0644]
test/MC/AArch64/mapping-within-section.s [new file with mode: 0644]
test/MC/AArch64/tls-relocs.s [new file with mode: 0644]
test/MC/Disassembler/AArch64/basic-a64-instructions.txt [new file with mode: 0644]
test/MC/Disassembler/AArch64/basic-a64-undefined.txt [new file with mode: 0644]
test/MC/Disassembler/AArch64/basic-a64-unpredictable.txt [new file with mode: 0644]
test/MC/Disassembler/AArch64/ldp-offset-predictable.txt [new file with mode: 0644]
test/MC/Disassembler/AArch64/ldp-postind.predictable.txt [new file with mode: 0644]
test/MC/Disassembler/AArch64/ldp-preind.predictable.txt [new file with mode: 0644]
test/MC/Disassembler/AArch64/lit.local.cfg [new file with mode: 0644]
utils/TableGen/DisassemblerEmitter.cpp