[PATCH] D50141: Add errors for tiny codemodel on targets other than AArch64

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 06:40:31 PDT 2018


dmgreen created this revision.
dmgreen added reviewers: t.p.northover, efriedma, peter.smith, asb, kparzysz, craig.topper, atanasyan.
Herald added subscribers: the_o, brucehoult, MartinMosbeck, rogfer01, mgrang, edward-jones, zzheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar, fedor.sergeev, kbarton, aheejin, kristof.beyls, jgravelle-google, sbc100, nhaehnle, nemanjai, sdardis, dylanmckay, jyknight, dschuff, arsenm, jholewinski.
Herald added a reviewer: javed.absar.

Adds fatal errors for any target that does not support the Tiny codemodel.

Not 100% sure what the best way to do this is. Commoning the getEffectiveCodeModel function into single place seems like a sensible idea, but where that function goes I'm not sure of.

Split out of https://reviews.llvm.org/D49673


https://reviews.llvm.org/D50141

Files:
  include/llvm/Target/TargetMachine.h
  lib/Target/AArch64/AArch64TargetMachine.cpp
  lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  lib/Target/ARC/ARCTargetMachine.cpp
  lib/Target/ARM/ARMTargetMachine.cpp
  lib/Target/AVR/AVRTargetMachine.cpp
  lib/Target/BPF/BPFTargetMachine.cpp
  lib/Target/Hexagon/HexagonTargetMachine.cpp
  lib/Target/Lanai/LanaiTargetMachine.cpp
  lib/Target/MSP430/MSP430TargetMachine.cpp
  lib/Target/Mips/MipsTargetMachine.cpp
  lib/Target/NVPTX/NVPTXTargetMachine.cpp
  lib/Target/Nios2/Nios2TargetMachine.cpp
  lib/Target/PowerPC/PPCTargetMachine.cpp
  lib/Target/RISCV/RISCVTargetMachine.cpp
  lib/Target/Sparc/SparcTargetMachine.cpp
  lib/Target/SystemZ/SystemZTargetMachine.cpp
  lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
  lib/Target/X86/X86TargetMachine.cpp
  lib/Target/XCore/XCoreTargetMachine.cpp
  test/CodeGen/ARM/tiny_codemodel.ll
  test/CodeGen/PowerPC/tiny_codemodel.ll
  test/CodeGen/SPARC/tiny_codemodel.ll
  test/CodeGen/SystemZ/tiny_codemodel.ll
  test/CodeGen/X86/tiny_codemodel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50141.158524.patch
Type: text/x-patch
Size: 20179 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180801/e49f977a/attachment.bin>


More information about the llvm-commits mailing list