[PATCH] D77537: [Alignment][NFC] Add DebugStr and operator*

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 03:45:35 PDT 2020


gchatelet created this revision.
gchatelet added a reviewer: courbet.
Herald added subscribers: llvm-commits, atanasyan, jrtc27, hiraditya, sdardis.
Herald added a project: LLVM.

This is a roll forward of D77394 <https://reviews.llvm.org/D77394> minus AlignmentFromAssumptions (which needs to be addressed separately)
Differences from D77394 <https://reviews.llvm.org/D77394>:

- DebugStr() now prints the alignment value or `None` and no more `Align(x)` or `MaybeAlign(x)`
  - This is to keep Warning message consistent (CodeGen/SystemZ/alloca-04.ll)
- Removed a few unneeded headers from Alignment (since it's included everywhere it's better to keep the dependencies to a minimum)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77537

Files:
  llvm/include/llvm/Support/Alignment.h
  llvm/lib/CodeGen/MachineFrameInfo.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/Target/Mips/MipsRegisterInfo.cpp
  llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77537.255274.patch
Type: text/x-patch
Size: 9464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200406/7b2498c6/attachment.bin>


More information about the llvm-commits mailing list