Skip to content

Commit 3d35b4c

Browse files
committed
Comments
1 parent 75b5bd9 commit 3d35b4c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

llvm/include/llvm/Support/Compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
#define LLVM_ATTRIBUTE_RETURNS_NONNULL
279279
#endif
280280

281-
/// LLVM_ATTRIBUTE_RESTRICT- Annotates a pointer to tell the compiler that
281+
/// LLVM_ATTRIBUTE_RESTRICT - Annotates a pointer to tell the compiler that
282282
/// it is not aliased in the current scope.
283283
#if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
284284
#define LLVM_ATTRIBUTE_RESTRICT __restrict

llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,9 @@ bool MemoryAlignmentPredicateMatcher::isIdentical(
15911591

15921592
void MemoryAlignmentPredicateMatcher::emitPredicateOpcodes(
15931593
MatchTable &Table, RuleMatcher &Rule) const {
1594+
// TODO: we could support more, just need to emit the right opcode or switch
1595+
// to log alignment.
1596+
assert(MinAlign < 256);
15941597
Table << MatchTable::Opcode("GIM_CheckMemoryAlignment")
15951598
<< MatchTable::Comment("MI") << MatchTable::ULEB128Value(InsnVarID)
15961599
<< MatchTable::Comment("MMO") << MatchTable::ULEB128Value(MMOIdx)

0 commit comments

Comments
 (0)