[PATCH] D61432: Non-8-bit bytes showcase

Jesper Antonsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 04:49:30 PDT 2019


JesperAntonsson created this revision.
Herald added a project: LLVM.

This patch set is meant to show the key addition of a BitsPerByte member of DataLayout and how this can be used in refactorings to remove magic numbers related to the assumption of 8-bit bytes.

Only a small number of such refactorings are shown, but should convey what they'd look like. An RFC will be sent to the llvm community with a suggestion for a way forward.


Repository:
  rL LLVM

https://reviews.llvm.org/D61432

Files:
  include/llvm/IR/DataLayout.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/IR/DataLayout.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61432.197746.patch
Type: text/x-patch
Size: 14427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190502/029615e2/attachment.bin>


More information about the llvm-commits mailing list