[PATCH] D100776: [clang/Basic] Make TargetInfo.h not use DataLayout again
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 19 10:58:44 PDT 2021
thakis created this revision.
thakis added a reviewer: rnk.
Herald added subscribers: dexonsmith, kerbowa, kbarton, mgorny, nhaehnle, jvesely, nemanjai.
thakis requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Reverts parts of https://reviews.llvm.org/D17183, but keeps the
resetDataLayout() API and adds an assert that checks that datalayout string and
user label prefix are in sync.
Approach 1 in https://reviews.llvm.org/D17183#2653279
Reduces number of TUs build for 'clang-format' from 689 to 575.
I also implemented approach 1 in D100764 <https://reviews.llvm.org/D100764>. If someone feels motivated
to make us use DataLayout more, it's easy to revert this change here
and go with D100764 <https://reviews.llvm.org/D100764> instead. I don't plan on doing more work in this
area though, so I prefer going with the smaller, more self-consistent change.
https://reviews.llvm.org/D100776
Files:
clang/include/clang/Basic/TargetInfo.h
clang/include/clang/CodeGen/BackendUtil.h
clang/lib/AST/Mangle.cpp
clang/lib/Basic/CMakeLists.txt
clang/lib/Basic/TargetInfo.cpp
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Basic/Targets/AMDGPU.cpp
clang/lib/Basic/Targets/ARM.cpp
clang/lib/Basic/Targets/PPC.h
clang/lib/Basic/Targets/X86.h
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/CodeGen/ModuleBuilder.cpp
clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/unittests/AST/DeclTest.cpp
llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100776.338558.patch
Type: text/x-patch
Size: 20005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210419/2088fb8d/attachment-0001.bin>
More information about the cfe-commits
mailing list