This is an archive of the discontinued LLVM Phabricator instance.

[Alignment][NFC] Support compile time constants
ClosedPublic

Authored by gchatelet on Oct 14 2019, 1:27 AM.

Details

Summary

This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Diff Detail

Event Timeline

gchatelet created this revision.Oct 14 2019, 1:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2019, 1:27 AM
courbet added inline comments.Oct 14 2019, 1:42 AM
llvm/include/llvm/Support/Alignment.h
56

Add a comment to explain why we need this (gcc bug)

llvm/unittests/Support/AlignmentTest.cpp
25

alignof

gchatelet updated this revision to Diff 224820.Oct 14 2019, 1:53 AM
  • Address comments
gchatelet marked 2 inline comments as done.Oct 14 2019, 1:53 AM
courbet accepted this revision.Oct 14 2019, 1:55 AM
This revision is now accepted and ready to land.Oct 14 2019, 1:55 AM
This revision was automatically updated to reflect the committed changes.

This patch broke the build for MSVC, a fix is underway.