[PATCH] D64931: Change X86 datalayout for three address spaces that specify pointer sizes.

Amy Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 11:54:25 PDT 2019


akhuang updated this revision to Diff 215452.
akhuang added a comment.
Herald added a subscriber: seiya.

- Change the datalayout strings in test cases for x86 so they match the new datalayout and tests pass.
- Change the address space numbers, mostly so I don't have to change the fact that currently address spaces under

256 don't do anything.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64931/new/

https://reviews.llvm.org/D64931

Files:
  clang/lib/Basic/Targets/OSTargets.h
  clang/lib/Basic/Targets/X86.h
  clang/test/CodeGen/Inputs/thinlto-multi-module.ll
  clang/test/CodeGen/Inputs/thinlto_backend.ll
  clang/test/CodeGen/Inputs/thinlto_backend_local_name_conflict1.ll
  clang/test/CodeGen/Inputs/thinlto_backend_local_name_conflict2.ll
  clang/test/CodeGen/iamcu-abi.c
  clang/test/CodeGen/target-data.c
  clang/test/CodeGen/thinlto-diagnostic-handler-remarks-with-hotness.ll
  clang/test/CodeGen/thinlto-distributed-backend-skip.ll
  clang/test/CodeGen/thinlto-distributed-cfi-devirt.ll
  clang/test/CodeGen/thinlto-distributed-cfi.ll
  clang/test/CodeGen/thinlto-distributed.ll
  clang/test/CodeGen/thinlto-multi-module.ll
  clang/test/CodeGen/thinlto_backend.ll
  clang/test/CodeGen/thinlto_backend_local_name_conflict.ll
  llvm/lib/Target/X86/X86TargetMachine.cpp
  llvm/test/LTO/Resolution/X86/Inputs/alias-1.ll
  llvm/test/LTO/Resolution/X86/Inputs/alias-alias-1.ll
  llvm/test/LTO/Resolution/X86/Inputs/appending-var-2.ll
  llvm/test/LTO/Resolution/X86/Inputs/comdat-mixed-lto.ll
  llvm/test/LTO/Resolution/X86/Inputs/comdat.ll
  llvm/test/LTO/Resolution/X86/Inputs/common2.ll
  llvm/test/LTO/Resolution/X86/Inputs/commons.ll
  llvm/test/LTO/Resolution/X86/Inputs/dead-strip-alias.ll
  llvm/test/LTO/Resolution/X86/Inputs/dead-strip-fulllto.ll
  llvm/test/LTO/Resolution/X86/Inputs/intrinsic.ll
  llvm/test/LTO/Resolution/X86/Inputs/link-odr-availextern-ae.ll
  llvm/test/LTO/Resolution/X86/Inputs/link-odr-availextern-odr.ll
  llvm/test/LTO/Resolution/X86/Inputs/mixed_lto.ll
  llvm/test/LTO/Resolution/X86/Inputs/mod-asm-used.ll
  llvm/test/LTO/Resolution/X86/Inputs/not-prevailing.ll
  llvm/test/LTO/Resolution/X86/alias-alias.ll
  llvm/test/LTO/Resolution/X86/alias.ll
  llvm/test/LTO/Resolution/X86/appending-var.ll
  llvm/test/LTO/Resolution/X86/asm-output.ll
  llvm/test/LTO/Resolution/X86/available-externally.ll
  llvm/test/LTO/Resolution/X86/cache-dso-local.ll
  llvm/test/LTO/Resolution/X86/cache-dso-local2.ll
  llvm/test/LTO/Resolution/X86/cache-prevailing.ll
  llvm/test/LTO/Resolution/X86/comdat-mixed-lto.ll
  llvm/test/LTO/Resolution/X86/comdat.ll
  llvm/test/LTO/Resolution/X86/common2.ll
  llvm/test/LTO/Resolution/X86/commons.ll
  llvm/test/LTO/Resolution/X86/dead-strip-alias.ll
  llvm/test/LTO/Resolution/X86/dead-strip-fulllto.ll
  llvm/test/LTO/Resolution/X86/diagnostic-handler-remarks-with-hotness.ll
  llvm/test/LTO/Resolution/X86/diagnostic-handler-remarks.ll
  llvm/test/LTO/Resolution/X86/export-jumptable.ll
  llvm/test/LTO/Resolution/X86/function-alias-non-prevailing.ll
  llvm/test/LTO/Resolution/X86/ifunc.ll
  llvm/test/LTO/Resolution/X86/intrinsic.ll
  llvm/test/LTO/Resolution/X86/link-odr-availextern.ll
  llvm/test/LTO/Resolution/X86/linker-redef-thin.ll
  llvm/test/LTO/Resolution/X86/linker-redef.ll
  llvm/test/LTO/Resolution/X86/linkonce.ll
  llvm/test/LTO/Resolution/X86/load-sample-prof-icp.ll
  llvm/test/LTO/Resolution/X86/load-sample-prof-lto.ll
  llvm/test/LTO/Resolution/X86/load-sample-prof.ll
  llvm/test/LTO/Resolution/X86/local-def-dllimport.ll
  llvm/test/LTO/Resolution/X86/lowertypetests.ll
  llvm/test/LTO/Resolution/X86/lto-unit-check.ll
  llvm/test/LTO/Resolution/X86/mixed_lto.ll
  llvm/test/LTO/Resolution/X86/mod-asm-used.ll
  llvm/test/LTO/Resolution/X86/multi-thinlto.ll
  llvm/test/LTO/Resolution/X86/not-prevailing-alias.ll
  llvm/test/LTO/Resolution/X86/not-prevailing-variables.ll
  llvm/test/LTO/Resolution/X86/not-prevailing.ll
  llvm/test/LTO/Resolution/X86/setting-dso-local.ll
  llvm/test/LTO/Resolution/X86/symtab-elf.ll
  llvm/test/LTO/Resolution/X86/type-checked-load.ll
  llvm/test/LTO/X86/Inputs/codemodel-3.ll
  llvm/test/LTO/X86/Inputs/dllimport.ll
  llvm/test/LTO/X86/Inputs/remangle_intrinsics_tbaa.ll
  llvm/test/LTO/X86/Inputs/strip-debug-info-bar.ll
  llvm/test/LTO/X86/Inputs/type-mapping-bug2.ll
  llvm/test/LTO/X86/codemodel-1.ll
  llvm/test/LTO/X86/codemodel-2.ll
  llvm/test/LTO/X86/codemodel-3.ll
  llvm/test/LTO/X86/current-section.ll
  llvm/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
  llvm/test/LTO/X86/diagnostic-handler-remarks.ll
  llvm/test/LTO/X86/disable-verify.ll
  llvm/test/LTO/X86/dllimport.ll
  llvm/test/LTO/X86/internalize.ll
  llvm/test/LTO/X86/no-undefined-puts-when-implemented.ll
  llvm/test/LTO/X86/objc-detection.ll
  llvm/test/LTO/X86/pr38046.ll
  llvm/test/LTO/X86/private-symbol.ll
  llvm/test/LTO/X86/remangle_intrinsics_tbaa.ll
  llvm/test/LTO/X86/set-merged.ll
  llvm/test/LTO/X86/strip-debug-info-no-call-loc.ll
  llvm/test/LTO/X86/strip-debug-info.ll
  llvm/test/LTO/X86/symver-asm.ll
  llvm/test/LTO/X86/symver-asm2.ll
  llvm/test/LTO/X86/symver-asm3.ll
  llvm/test/LTO/X86/tailcallelim.ll
  llvm/test/LTO/X86/triple-init.ll
  llvm/test/LTO/X86/triple-init2.ll
  llvm/test/LTO/X86/type-mapping-bug2.ll
  llvm/test/ThinLTO/X86/Inputs/alias_internal.ll
  llvm/test/ThinLTO/X86/Inputs/cache-icall.ll
  llvm/test/ThinLTO/X86/Inputs/cache-import-lists1.ll
  llvm/test/ThinLTO/X86/Inputs/cache-import-lists2.ll
  llvm/test/ThinLTO/X86/Inputs/cache-typeid-resolutions-import.ll
  llvm/test/ThinLTO/X86/Inputs/cache-typeid-resolutions1.ll
  llvm/test/ThinLTO/X86/Inputs/cache-typeid-resolutions2.ll
  llvm/test/ThinLTO/X86/Inputs/cache-typeid-resolutions3.ll
  llvm/test/ThinLTO/X86/Inputs/cache.ll
  llvm/test/ThinLTO/X86/Inputs/callees-metadata.ll
  llvm/test/ThinLTO/X86/Inputs/cfi-distributed.ll
  llvm/test/ThinLTO/X86/Inputs/cfi-icall-only-bazqux.ll
  llvm/test/ThinLTO/X86/Inputs/crash_debuginfo.ll
  llvm/test/ThinLTO/X86/Inputs/deadstrip.ll
  llvm/test/ThinLTO/X86/Inputs/debuginfo-compositetype-import.ll
  llvm/test/ThinLTO/X86/Inputs/debuginfo-cu-import.ll
  llvm/test/ThinLTO/X86/Inputs/devirt2.ll
  llvm/test/ThinLTO/X86/Inputs/diagnostic-handler-remarks.ll
  llvm/test/ThinLTO/X86/Inputs/dicompositetype-unique-alias.ll
  llvm/test/ThinLTO/X86/Inputs/dicompositetype-unique.ll
  llvm/test/ThinLTO/X86/Inputs/dicompositetype-unique2.ll
  llvm/test/ThinLTO/X86/Inputs/dot-dumper.ll
  llvm/test/ThinLTO/X86/Inputs/dot-dumper2.ll
  llvm/test/ThinLTO/X86/Inputs/drop-debug-info.ll
  llvm/test/ThinLTO/X86/Inputs/dsolocal_dllimport.ll
  llvm/test/ThinLTO/X86/Inputs/emit_imports.ll
  llvm/test/ThinLTO/X86/Inputs/emit_imports2.ll
  llvm/test/ThinLTO/X86/Inputs/empty.ll
  llvm/test/ThinLTO/X86/Inputs/empty_module_with_cache.ll
  llvm/test/ThinLTO/X86/Inputs/export.ll
  llvm/test/ThinLTO/X86/Inputs/funcimport-debug.ll
  llvm/test/ThinLTO/X86/Inputs/funcimport-tbaa.ll
  llvm/test/ThinLTO/X86/Inputs/funcimport.ll
  llvm/test/ThinLTO/X86/Inputs/funcimport2.ll
  llvm/test/ThinLTO/X86/Inputs/function_entry_count.ll
  llvm/test/ThinLTO/X86/Inputs/globals-import-blockaddr.ll
  llvm/test/ThinLTO/X86/Inputs/globals-import-cf-baz.ll
  llvm/test/ThinLTO/X86/Inputs/globals-import.ll
  llvm/test/ThinLTO/X86/Inputs/import_opaque_type.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-alias.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-cache-foo.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-cache-test1.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-cache-test2.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-comdat.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-define-g.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-full-lto.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-gvref.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop-linkage.ll
  llvm/test/ThinLTO/X86/Inputs/index-const-prop.ll
  llvm/test/ThinLTO/X86/Inputs/lazyload_metadata.ll
  llvm/test/ThinLTO/X86/Inputs/linkonce_aliasee_ref_import.ll
  llvm/test/ThinLTO/X86/Inputs/linkonce_odr_unnamed_addr.ll
  llvm/test/ThinLTO/X86/Inputs/linkonce_resolution_comdat.ll
  llvm/test/ThinLTO/X86/Inputs/llvm.used.ll
  llvm/test/ThinLTO/X86/Inputs/local_name_conflict1.ll
  llvm/test/ThinLTO/X86/Inputs/local_name_conflict2.ll
  llvm/test/ThinLTO/X86/Inputs/local_name_conflict_var1.ll
  llvm/test/ThinLTO/X86/Inputs/local_name_conflict_var2.ll
  llvm/test/ThinLTO/X86/Inputs/merge-triple.ll
  llvm/test/ThinLTO/X86/Inputs/module_asm.ll
  llvm/test/ThinLTO/X86/Inputs/module_asm2.ll
  llvm/test/ThinLTO/X86/Inputs/noinline.ll
  llvm/test/ThinLTO/X86/Inputs/personality-local.ll
  llvm/test/ThinLTO/X86/Inputs/personality.ll
  llvm/test/ThinLTO/X86/Inputs/pr35472.ll
  llvm/test/ThinLTO/X86/Inputs/reference_non_importable.ll
  llvm/test/ThinLTO/X86/Inputs/referenced_by_constant.ll
  llvm/test/ThinLTO/X86/Inputs/strong_non_prevailing.ll
  llvm/test/ThinLTO/X86/Inputs/thinlto-internalize-used2.ll
  llvm/test/ThinLTO/X86/Inputs/weak_resolution.ll
  llvm/test/ThinLTO/X86/alias_internal.ll
  llvm/test/ThinLTO/X86/autoupgrade.ll
  llvm/test/ThinLTO/X86/builtin-nostrip.ll
  llvm/test/ThinLTO/X86/cache-config.ll
  llvm/test/ThinLTO/X86/cache-icall.ll
  llvm/test/ThinLTO/X86/cache-import-lists.ll
  llvm/test/ThinLTO/X86/cache-typeid-resolutions.ll
  llvm/test/ThinLTO/X86/cache.ll
  llvm/test/ThinLTO/X86/callees-metadata.ll
  llvm/test/ThinLTO/X86/cfi-devirt.ll
  llvm/test/ThinLTO/X86/cfi-distributed.ll
  llvm/test/ThinLTO/X86/cfi-icall-only-defuse.ll
  llvm/test/ThinLTO/X86/cfi-icall.ll
  llvm/test/ThinLTO/X86/cfi.ll
  llvm/test/ThinLTO/X86/crash_debuginfo.ll
  llvm/test/ThinLTO/X86/deadstrip.ll
  llvm/test/ThinLTO/X86/debuginfo-compositetype-import.ll
  llvm/test/ThinLTO/X86/debuginfo-cu-import.ll
  llvm/test/ThinLTO/X86/devirt-after-icp.ll
  llvm/test/ThinLTO/X86/devirt.ll
  llvm/test/ThinLTO/X86/devirt2.ll
  llvm/test/ThinLTO/X86/diagnostic-handler-remarks-with-hotness.ll
  llvm/test/ThinLTO/X86/diagnostic-handler-remarks.ll
  llvm/test/ThinLTO/X86/dicompositetype-unique-alias.ll
  llvm/test/ThinLTO/X86/dicompositetype-unique.ll
  llvm/test/ThinLTO/X86/dicompositetype-unique2.ll
  llvm/test/ThinLTO/X86/distributed_import.ll
  llvm/test/ThinLTO/X86/dot-dumper-full-lto.ll
  llvm/test/ThinLTO/X86/dot-dumper.ll
  llvm/test/ThinLTO/X86/dot-dumper2.ll
  llvm/test/ThinLTO/X86/drop-debug-info.ll
  llvm/test/ThinLTO/X86/dsolocal_dllimport.ll
  llvm/test/ThinLTO/X86/emit_imports.ll
  llvm/test/ThinLTO/X86/empty-module.ll
  llvm/test/ThinLTO/X86/empty_module_with_cache.ll
  llvm/test/ThinLTO/X86/export.ll
  llvm/test/ThinLTO/X86/funcimport-debug.ll
  llvm/test/ThinLTO/X86/funcimport-tbaa.ll
  llvm/test/ThinLTO/X86/funcimport.ll
  llvm/test/ThinLTO/X86/funcimport2.ll
  llvm/test/ThinLTO/X86/function_entry_count.ll
  llvm/test/ThinLTO/X86/globals-import-blockaddr.ll
  llvm/test/ThinLTO/X86/globals-import-const-fold.ll
  llvm/test/ThinLTO/X86/globals-import.ll
  llvm/test/ThinLTO/X86/import_opaque_type.ll
  llvm/test/ThinLTO/X86/index-const-prop-O0.ll
  llvm/test/ThinLTO/X86/index-const-prop-alias.ll
  llvm/test/ThinLTO/X86/index-const-prop-cache.ll
  llvm/test/ThinLTO/X86/index-const-prop-comdat.ll
  llvm/test/ThinLTO/X86/index-const-prop-dead.ll
  llvm/test/ThinLTO/X86/index-const-prop-full-lto.ll
  llvm/test/ThinLTO/X86/index-const-prop-gvref.ll
  llvm/test/ThinLTO/X86/index-const-prop-ldst.ll
  llvm/test/ThinLTO/X86/index-const-prop-linkage.ll
  llvm/test/ThinLTO/X86/index-const-prop.ll
  llvm/test/ThinLTO/X86/index-const-prop2.ll
  llvm/test/ThinLTO/X86/internalize.ll
  llvm/test/ThinLTO/X86/lazyload_metadata.ll
  llvm/test/ThinLTO/X86/linkonce_aliasee_ref_import.ll
  llvm/test/ThinLTO/X86/linkonce_odr_unnamed_addr.ll
  llvm/test/ThinLTO/X86/linkonce_resolution_comdat.ll
  llvm/test/ThinLTO/X86/llvm.used.ll
  llvm/test/ThinLTO/X86/load-store-caching.ll
  llvm/test/ThinLTO/X86/local_name_conflict.ll
  llvm/test/ThinLTO/X86/local_name_conflict_var.ll
  llvm/test/ThinLTO/X86/merge-triple.ll
  llvm/test/ThinLTO/X86/module_asm2.ll
  llvm/test/ThinLTO/X86/module_asm_glob.ll
  llvm/test/ThinLTO/X86/module_summary_graph_traits.ll
  llvm/test/ThinLTO/X86/newpm-basic.ll
  llvm/test/ThinLTO/X86/nodevirt-nonpromoted-typeid.ll
  llvm/test/ThinLTO/X86/noinline.ll
  llvm/test/ThinLTO/X86/personality-local.ll
  llvm/test/ThinLTO/X86/personality.ll
  llvm/test/ThinLTO/X86/pr35472.ll
  llvm/test/ThinLTO/X86/reference_non_importable.ll
  llvm/test/ThinLTO/X86/referenced_by_constant.ll
  llvm/test/ThinLTO/X86/save_objects.ll
  llvm/test/ThinLTO/X86/strong_non_prevailing.ll
  llvm/test/ThinLTO/X86/thinlto-internalize-used.ll
  (79 more files...)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64931.215452.patch
Type: text/x-patch
Size: 190701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190815/6c580f4a/attachment-0001.bin>


More information about the cfe-commits mailing list