File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
utils/TableGen/Common/GlobalISel Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 278
278
#define LLVM_ATTRIBUTE_RETURNS_NONNULL
279
279
#endif
280
280
281
- // / LLVM_ATTRIBUTE_RESTRICT- Annotates a pointer to tell the compiler that
281
+ // / LLVM_ATTRIBUTE_RESTRICT - Annotates a pointer to tell the compiler that
282
282
// / it is not aliased in the current scope.
283
283
#if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
284
284
#define LLVM_ATTRIBUTE_RESTRICT __restrict
Original file line number Diff line number Diff line change @@ -1591,6 +1591,9 @@ bool MemoryAlignmentPredicateMatcher::isIdentical(
1591
1591
1592
1592
void MemoryAlignmentPredicateMatcher::emitPredicateOpcodes (
1593
1593
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 );
1594
1597
Table << MatchTable::Opcode (" GIM_CheckMemoryAlignment" )
1595
1598
<< MatchTable::Comment (" MI" ) << MatchTable::ULEB128Value (InsnVarID)
1596
1599
<< MatchTable::Comment (" MMO" ) << MatchTable::ULEB128Value (MMOIdx)
You can’t perform that action at this time.
0 commit comments