r370083 - Change the X86 datalayout to add three address spaces for 32 bit signed,
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 27 18:16:29 PDT 2019
llvm-project/lld/test/ELF/lto/Inputs/drop-debug-info.bc needs to be updated
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/34675/steps/check-lld%20msan/logs/stdio
/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld -shared
/usr/local/google/home/vitalybuka/slow/bbot/llvm-project/lld/test/ELF/lto/Inputs/drop-debug-info.bc
-disable-verify -o
/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/obj/lld/test/ELF/lto/Output/drop-debug-info.ll.tmp
ld.lld: warning: ignoring debug info with an invalid version (1) in
/usr/local/google/home/vitalybuka/slow/bbot/llvm-project/lld/test/ELF/lto/Inputs/drop-debug-info.bc
ld.lld: ../llvm-project/llvm/lib/CodeGen/MachineFunction.cpp:200: void
llvm::MachineFunction::init(): Assertion
`Target.isCompatibleDataLayout(getDataLayout()) && "Can't create a
MachineFunction using a Module with a " "Target-incompatible DataLayout
attached\n"' failed.
Stack dump:
0. Program arguments:
/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld -shared
/usr/local/google/home/vitalybuka/slow/bbot/llvm-project/lld/test/ELF/lto/Inputs/drop-debug-info.bc
-disable-verify -o
/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/obj/lld/test/ELF/lto/Output/drop-debug-info.ll.tmp
1. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function '@f'
#0 0x00000000014e31cd PrintStackTraceSignalHandler(void*)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x14e31cd)
#1 0x00000000014e0fce llvm::sys::RunSignalHandlers()
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x14e0fce)
#2 0x00000000014e3388 SignalHandler(int)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x14e3388)
#3 0x00007f83527833a0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x123a0)
#4 0x00007f8351c86cfb raise (/lib/x86_64-linux-gnu/libc.so.6+0x36cfb)
#5 0x00007f8351c718ad abort (/lib/x86_64-linux-gnu/libc.so.6+0x218ad)
#6 0x00007f8351c7177f (/lib/x86_64-linux-gnu/libc.so.6+0x2177f)
#7 0x00007f8351c7f542 (/lib/x86_64-linux-gnu/libc.so.6+0x2f542)
#8 0x000000000200c1da llvm::MachineFunction::init()
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x200c1da)
#9 0x0000000002009082
llvm::MachineModuleInfo::getOrCreateMachineFunction(llvm::Function const&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x2009082)
#10 0x0000000002006d36
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x2006d36)
#11 0x0000000001751746 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1751746)
#12 0x0000000001751a53 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1751a53)
#13 0x000000000175209c llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x175209c)
#14 0x0000000001b4fe00 (anonymous namespace)::codegen(llvm::lto::Config&,
llvm::TargetMachine*,
std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>,
unsigned int, llvm::Module&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1b4fe00)
#15 0x0000000001b4ce8e llvm::lto::backend(llvm::lto::Config&,
std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>,
unsigned int, std::unique_ptr<llvm::Module,
std::default_delete<llvm::Module> >, llvm::ModuleSummaryIndex&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1b4ce8e)
#16 0x0000000001b43066
llvm::lto::LTO::runRegularLTO(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1b43066)
#17 0x0000000001b42a21
llvm::lto::LTO::run(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>,
std::function<std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>
(unsigned int, llvm::StringRef)>)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1b42a21)
#18 0x00000000012d13e3 lld::elf::BitcodeCompiler::compile()
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x12d13e3)
#19 0x0000000001260ed4 void
lld::elf::LinkerDriver::compileBitcodeFiles<llvm::object::ELFType<(llvm::support::endianness)1,
true> >()
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1260ed4)
#20 0x0000000001255974 void
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1,
true> >(llvm::opt::InputArgList&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1255974)
#21 0x000000000124570c lld::elf::LinkerDriver::main(llvm::ArrayRef<char
const*>)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x124570c)
#22 0x0000000001244019 lld::elf::link(llvm::ArrayRef<char const*>, bool,
llvm::raw_ostream&)
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x1244019)
#23 0x00000000011b781d main
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x11b781d)
#24 0x00007f8351c7352b __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2352b)
#25 0x00000000011b702a _start
(/usr/local/google/home/vitalybuka/slow/bbot/llvm_build/bin/ld.lld+0x11b702a)
Aborted
On Tue, Aug 27, 2019 at 10:45 AM Amy Huang via cfe-commits <
cfe-commits at lists.llvm.org> wrote:
> Author: akhuang
> Date: Tue Aug 27 10:46:53 2019
> New Revision: 370083
>
> URL: http://llvm.org/viewvc/llvm-project?rev=370083&view=rev
> Log:
> Change the X86 datalayout to add three address spaces for 32 bit signed,
> 32 bit unsigned, and 64 bit pointers.
>
> Modified:
> cfe/trunk/lib/Basic/Targets/OSTargets.h
> cfe/trunk/lib/Basic/Targets/X86.h
> cfe/trunk/test/CodeGen/Inputs/thinlto-multi-module.ll
> cfe/trunk/test/CodeGen/Inputs/thinlto_backend.ll
> cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll
> cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll
> cfe/trunk/test/CodeGen/iamcu-abi.c
> cfe/trunk/test/CodeGen/target-data.c
>
> cfe/trunk/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
> cfe/trunk/test/CodeGen/thinlto-distributed-backend-skip.ll
> cfe/trunk/test/CodeGen/thinlto-distributed-cfi-devirt.ll
> cfe/trunk/test/CodeGen/thinlto-distributed-cfi.ll
> cfe/trunk/test/CodeGen/thinlto-distributed.ll
> cfe/trunk/test/CodeGen/thinlto-multi-module.ll
> cfe/trunk/test/CodeGen/thinlto_backend.ll
> cfe/trunk/test/CodeGen/thinlto_backend_local_name_conflict.ll
>
> Modified: cfe/trunk/lib/Basic/Targets/OSTargets.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets/OSTargets.h?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Basic/Targets/OSTargets.h (original)
> +++ cfe/trunk/lib/Basic/Targets/OSTargets.h Tue Aug 27 10:46:53 2019
> @@ -775,9 +775,11 @@ public:
> if (Triple.getArch() == llvm::Triple::arm) {
> // Handled in ARM's setABI().
> } else if (Triple.getArch() == llvm::Triple::x86) {
> - this->resetDataLayout("e-m:e-p:32:32-i64:64-n8:16:32-S128");
> +
> this->resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-"
> + "i64:64-n8:16:32-S128");
> } else if (Triple.getArch() == llvm::Triple::x86_64) {
> - this->resetDataLayout("e-m:e-p:32:32-i64:64-n8:16:32:64-S128");
> +
> this->resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-"
> + "i64:64-n8:16:32:64-S128");
> } else if (Triple.getArch() == llvm::Triple::mipsel) {
> // Handled on mips' setDataLayout.
> } else {
>
> Modified: cfe/trunk/lib/Basic/Targets/X86.h
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets/X86.h?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Basic/Targets/X86.h (original)
> +++ cfe/trunk/lib/Basic/Targets/X86.h Tue Aug 27 10:46:53 2019
> @@ -340,7 +340,8 @@ public:
> LongDoubleWidth = 96;
> LongDoubleAlign = 32;
> SuitableAlign = 128;
> - resetDataLayout("e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128");
> +
> resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-"
> + "f80:32-n8:16:32-S128");
> SizeType = UnsignedInt;
> PtrDiffType = SignedInt;
> IntPtrType = SignedInt;
> @@ -440,7 +441,8 @@ public:
> UseSignedCharForObjCBool = false;
> SizeType = UnsignedLong;
> IntPtrType = SignedLong;
> - resetDataLayout("e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128");
> +
> resetDataLayout("e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-"
> + "f80:128-n8:16:32-S128");
> HasAlignMac68kSupport = true;
> }
>
> @@ -465,9 +467,10 @@ public:
> DoubleAlign = LongLongAlign = 64;
> bool IsWinCOFF =
> getTriple().isOSWindows() && getTriple().isOSBinFormatCOFF();
> - resetDataLayout(IsWinCOFF
> - ?
> "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
> - :
> "e-m:e-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32");
> + resetDataLayout(IsWinCOFF ?
> "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:"
> + "64-i64:64-f80:32-n8:16:32-a:0:32-S32"
> + :
> "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:"
> + "64-i64:64-f80:32-n8:16:32-a:0:32-S32");
> }
> };
>
> @@ -515,7 +518,8 @@ public:
> : X86_32TargetInfo(Triple, Opts) {
> this->WCharType = TargetInfo::UnsignedShort;
> DoubleAlign = LongLongAlign = 64;
> - resetDataLayout("e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32");
> +
> resetDataLayout("e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:"
> + "32-n8:16:32-a:0:32-S32");
> }
>
> void getTargetDefines(const LangOptions &Opts,
> @@ -552,7 +556,8 @@ public:
> : X86_32TargetInfo(Triple, Opts) {
> LongDoubleWidth = 64;
> LongDoubleFormat = &llvm::APFloat::IEEEdouble();
> -
> resetDataLayout("e-m:e-p:32:32-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32");
> +
> resetDataLayout("e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:32-f64:"
> + "32-f128:32-n8:16:32-a:0:32-S32");
> WIntType = UnsignedInt;
> }
>
> @@ -611,10 +616,12 @@ public:
> RegParmMax = 6;
>
> // Pointers are 32-bit in x32.
> - resetDataLayout(IsX32
> - ? "e-m:e-p:32:32-i64:64-f80:128-n8:16:32:64-S128"
> - : IsWinCOFF ?
> "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
> - :
> "e-m:e-i64:64-f80:128-n8:16:32:64-S128");
> + resetDataLayout(IsX32 ?
> "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-"
> + "i64:64-f80:128-n8:16:32:64-S128"
> + : IsWinCOFF ?
> "e-m:w-p270:32:32-p271:32:32-p272:64:"
> +
> "64-i64:64-f80:128-n8:16:32:64-S128"
> + :
> "e-m:e-p270:32:32-p271:32:32-p272:64:"
> +
> "64-i64:64-f80:128-n8:16:32:64-S128");
>
> // Use fpret only for long double.
> RealTypeUsesObjCFPRet = (1 << TargetInfo::LongDouble);
> @@ -804,7 +811,8 @@ public:
> llvm::Triple T = llvm::Triple(Triple);
> if (T.isiOS())
> UseSignedCharForObjCBool = false;
> - resetDataLayout("e-m:o-i64:64-f80:128-n8:16:32:64-S128");
> +
> resetDataLayout("e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:"
> + "16:32:64-S128");
> }
>
> bool handleTargetFeatures(std::vector<std::string> &Features,
>
> Modified: cfe/trunk/test/CodeGen/Inputs/thinlto-multi-module.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/Inputs/thinlto-multi-module.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/Inputs/thinlto-multi-module.ll (original)
> +++ cfe/trunk/test/CodeGen/Inputs/thinlto-multi-module.ll Tue Aug 27
> 10:46:53 2019
> @@ -1,4 +1,4 @@
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> define void @f2() {
>
> Modified: cfe/trunk/test/CodeGen/Inputs/thinlto_backend.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/Inputs/thinlto_backend.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/Inputs/thinlto_backend.ll (original)
> +++ cfe/trunk/test/CodeGen/Inputs/thinlto_backend.ll Tue Aug 27 10:46:53
> 2019
> @@ -1,4 +1,4 @@
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> define void @f2() {
>
> Modified:
> cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll
> (original)
> +++ cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll
> Tue Aug 27 10:46:53 2019
> @@ -1,6 +1,6 @@
> ; ModuleID = 'local_name_conflict_var.o'
> source_filename = "local_name_conflict_var.c"
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> @baz = internal global i32 10, align 4
>
> Modified:
> cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll
> (original)
> +++ cfe/trunk/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll
> Tue Aug 27 10:46:53 2019
> @@ -1,6 +1,6 @@
> ; ModuleID = 'local_name_conflict_var.o'
> source_filename = "local_name_conflict_var.c"
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> @baz = internal global i32 10, align 4
>
> Modified: cfe/trunk/test/CodeGen/iamcu-abi.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/iamcu-abi.c?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/iamcu-abi.c (original)
> +++ cfe/trunk/test/CodeGen/iamcu-abi.c Tue Aug 27 10:46:53 2019
> @@ -1,9 +1,8 @@
> // RUN: %clang_cc1 -triple i386-pc-elfiamcu -emit-llvm -o - %s |
> FileCheck %s
>
> -// CHECK: target datalayout =
> "e-m:e-p:32:32-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32"
> +// CHECK: target datalayout =
> "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:32-f64:32-f128:32-n8:16:32-a:0:32-S32"
> // CHECK: target triple = "i386-pc-elfiamcu"
>
> -
> void food(double *d);
> void fooll(long long *ll);
> void fooull(unsigned long long *ull);
>
> Modified: cfe/trunk/test/CodeGen/target-data.c
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/target-data.c?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/target-data.c (original)
> +++ cfe/trunk/test/CodeGen/target-data.c Tue Aug 27 10:46:53 2019
> @@ -1,22 +1,22 @@
> // RUN: %clang_cc1 -triple i686-unknown-unknown -emit-llvm -o - %s | \
> // RUN: FileCheck --check-prefix=I686-UNKNOWN %s
> -// I686-UNKNOWN: target datalayout =
> "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
> +// I686-UNKNOWN: target datalayout =
> "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128"
>
> // RUN: %clang_cc1 -triple i686-apple-darwin9 -emit-llvm -o - %s | \
> // RUN: FileCheck --check-prefix=I686-DARWIN %s
> -// I686-DARWIN: target datalayout =
> "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
> +// I686-DARWIN: target datalayout =
> "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:128-n8:16:32-S128"
>
> // RUN: %clang_cc1 -triple i686-unknown-win32 -emit-llvm -o - %s | \
> // RUN: FileCheck --check-prefix=I686-WIN32 %s
> -// I686-WIN32: target datalayout =
> "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
> +// I686-WIN32: target datalayout =
> "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
>
> // RUN: %clang_cc1 -triple i686-unknown-cygwin -emit-llvm -o - %s | \
> // RUN: FileCheck --check-prefix=I686-CYGWIN %s
> -// I686-CYGWIN: target datalayout =
> "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
> +// I686-CYGWIN: target datalayout =
> "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:32-n8:16:32-a:0:32-S32"
>
> // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | \
> // RUN: FileCheck --check-prefix=X86_64 %s
> -// X86_64: target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +// X86_64: target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
>
> // RUN: %clang_cc1 -triple xcore-unknown-unknown -emit-llvm -o - %s | \
> // RUN: FileCheck --check-prefix=XCORE %s
> @@ -88,11 +88,11 @@
>
> // RUN: %clang_cc1 -triple i686-nacl -o - -emit-llvm %s | \
> // RUN: FileCheck %s -check-prefix=I686-NACL
> -// I686-NACL: target datalayout = "e-m:e-p:32:32-i64:64-n8:16:32-S128"
> +// I686-NACL: target datalayout =
> "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-n8:16:32-S128"
>
> // RUN: %clang_cc1 -triple x86_64-nacl -o - -emit-llvm %s | \
> // RUN: FileCheck %s -check-prefix=X86_64-NACL
> -// X86_64-NACL: target datalayout =
> "e-m:e-p:32:32-i64:64-n8:16:32:64-S128"
> +// X86_64-NACL: target datalayout =
> "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i64:64-n8:16:32:64-S128"
>
> // RUN: %clang_cc1 -triple arm-nacl -o - -emit-llvm %s | \
> // RUN: FileCheck %s -check-prefix=ARM-NACL
>
> Modified:
> cfe/trunk/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> ---
> cfe/trunk/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
> (original)
> +++
> cfe/trunk/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
> Tue Aug 27 10:46:53 2019
> @@ -32,7 +32,7 @@
>
> ; CHECK: tinkywinky inlined into main with (cost=0, threshold=337)
> (hotness: 300)
>
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-scei-ps4"
>
> declare i32 @patatino()
>
> Modified: cfe/trunk/test/CodeGen/thinlto-distributed-backend-skip.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto-distributed-backend-skip.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/thinlto-distributed-backend-skip.ll (original)
> +++ cfe/trunk/test/CodeGen/thinlto-distributed-backend-skip.ll Tue Aug 27
> 10:46:53 2019
> @@ -9,7 +9,7 @@
> ; RUN: -fthinlto-index=%S/Inputs/thinlto-distributed-backend-skip.bc \
> ; RUN: -emit-llvm -o - -x ir %t.o | FileCheck %s
>
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-grtev4-linux-gnu"
>
> ; CHECK: "empty"
>
> Modified: cfe/trunk/test/CodeGen/thinlto-distributed-cfi-devirt.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto-distributed-cfi-devirt.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/thinlto-distributed-cfi-devirt.ll (original)
> +++ cfe/trunk/test/CodeGen/thinlto-distributed-cfi-devirt.ll Tue Aug 27
> 10:46:53 2019
> @@ -47,7 +47,7 @@
> ; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc -O2 \
> ; RUN: -o %t.native.o -x ir %t.o
>
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-grtev4-linux-gnu"
>
> %struct.A = type { i32 (...)** }
>
> Modified: cfe/trunk/test/CodeGen/thinlto-distributed-cfi.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto-distributed-cfi.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/thinlto-distributed-cfi.ll (original)
> +++ cfe/trunk/test/CodeGen/thinlto-distributed-cfi.ll Tue Aug 27 10:46:53
> 2019
> @@ -36,7 +36,7 @@
> ; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \
> ; RUN: -o %t.native.o -x ir %t.o
>
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-grtev4-linux-gnu"
>
> %struct.B = type { %struct.A }
>
> Modified: cfe/trunk/test/CodeGen/thinlto-distributed.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto-distributed.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/thinlto-distributed.ll (original)
> +++ cfe/trunk/test/CodeGen/thinlto-distributed.ll Tue Aug 27 10:46:53 2019
> @@ -12,7 +12,7 @@
> ; RUN: -emit-obj -fthinlto-index=%t.o.thinlto.bc \
> ; RUN: -o %t.native.o -x ir %t.o
>
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-grtev4-linux-gnu"
>
> define i32 @main() {
>
> Modified: cfe/trunk/test/CodeGen/thinlto-multi-module.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto-multi-module.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/thinlto-multi-module.ll (original)
> +++ cfe/trunk/test/CodeGen/thinlto-multi-module.ll Tue Aug 27 10:46:53 2019
> @@ -11,7 +11,7 @@
> ; CHECK-OBJ: T f1
> ; CHECK-OBJ: U f2
>
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> declare void @f2()
>
> Modified: cfe/trunk/test/CodeGen/thinlto_backend.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto_backend.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/thinlto_backend.ll (original)
> +++ cfe/trunk/test/CodeGen/thinlto_backend.ll Tue Aug 27 10:46:53 2019
> @@ -47,7 +47,7 @@
> ; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o
> -c -fthinlto-index=%t.thinlto.bc 2>&1 | FileCheck %s
> -check-prefix=CHECK-ERROR2
> ; CHECK-ERROR2: Error loading imported file '{{.*}}': Could not find
> module summary
>
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> declare void @f2()
>
> Modified: cfe/trunk/test/CodeGen/thinlto_backend_local_name_conflict.ll
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/thinlto_backend_local_name_conflict.ll?rev=370083&r1=370082&r2=370083&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGen/thinlto_backend_local_name_conflict.ll
> (original)
> +++ cfe/trunk/test/CodeGen/thinlto_backend_local_name_conflict.ll Tue Aug
> 27 10:46:53 2019
> @@ -21,7 +21,7 @@
>
> ; ModuleID = 'local_name_conflict_var_main.o'
> source_filename = "local_name_conflict_var_main.c"
> -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
> +target datalayout =
> "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> ; Function Attrs: noinline nounwind uwtable
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190827/cfd437f3/attachment-0001.html>
More information about the cfe-commits
mailing list