[clang] [clang-tools-extra] [llvm] [MTE] Apply alignment / size in AsmPrinter rather than IR (PR #111918)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 01:32:43 PST 2024
================
@@ -808,6 +808,10 @@ void Verifier::visitGlobalValue(const GlobalValue &GV) {
"visibility must be dso_local!",
&GV);
+ if (GV.isTagged()) {
----------------
fmayer wrote:
The codegen has "is section == precisely honor alignment"
```
Align DataLayout::getPreferredAlign(const GlobalVariable *GV) const {
[...]
// If a section is specified, always precisely honor explicit alignment,
// so we don't insert padding into a section we don't control.
if (GVAlignment && GV->hasSection())
return *GVAlignment;
```
https://github.com/llvm/llvm-project/pull/111918
More information about the llvm-commits
mailing list