[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-22 Thread Guillaume Chatelet via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG0957233320eb: [Alignment][NFC] Use Align with CreateMaskedStore (authored by gchatelet). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73106/new/ https://re

[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-22 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet marked an inline comment as done. gchatelet added inline comments. Comment at: llvm/docs/LangRef.rst:14945 -The first operand is the base pointer for the load. The second operand is the alignment of the source location. It must be a constant integer value. The third

[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-22 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet updated this revision to Diff 239513. gchatelet marked an inline comment as done. gchatelet added a comment. - Reverting LangRef Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73106/new/ https://reviews.llvm.org/D73106 Files: clang/lib/

[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-22 Thread Clement Courbet via Phabricator via cfe-commits
courbet accepted this revision. courbet added inline comments. This revision is now accepted and ready to land. Comment at: llvm/docs/LangRef.rst:14945 -The first operand is the base pointer for the load. The second operand is the alignment of the source location. It must be a

[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-22 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet marked 2 inline comments as done. gchatelet added inline comments. Comment at: llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp:2907 Value *Addr = I.getArgOperand(1); -const MaybeAlign Alignment( +const Align Alignment( cast(I.getArgOperand(

[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-22 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet updated this revision to Diff 239501. gchatelet marked an inline comment as done. gchatelet added a comment. - Address comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73106/new/ https://reviews.llvm.org/D73106 Files: clang/lib/C

[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-21 Thread Clement Courbet via Phabricator via cfe-commits
courbet added inline comments. Comment at: llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp:2907 Value *Addr = I.getArgOperand(1); -const MaybeAlign Alignment( +const Align Alignment( cast(I.getArgOperand(2))->getZExtValue()); I think

[PATCH] D73106: [Alignment][NFC] Use Align with CreateMaskedStore

2020-01-21 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet created this revision. gchatelet added a reviewer: courbet. Herald added subscribers: llvm-commits, cfe-commits, hiraditya. Herald added projects: clang, LLVM. This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/