Skip to content

Commit 188f249

Browse files
committed
treewide: Replace SkipStmt with NullStmt.
1 parent 98dffd7 commit 188f249

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

include/vast/Dialect/HighLevel/HighLevelCF.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,10 @@ def HighLevel_IndirectGotoStmt
478478
let assemblyFormat = [{ attr-dict `:` $target }];
479479
}
480480

481-
def HighLevel_SkipStmt : HighLevel_Op< "skip", [] >
481+
def HighLevel_NullStmt : HighLevel_Op< "null", [] >
482482
{
483-
let summary = "VAST skip statement";
484-
let description = [{ VAST skip statement }];
483+
let summary = "VAST null statement";
484+
let description = [{ VAST null statement }];
485485

486486
let assemblyFormat = [{ attr-dict }];
487487
}

lib/vast/CodeGen/DefaultStmtVisitor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ namespace vast::cg
10331033

10341034
operation last_effective_operation(mlir::Block *block) {
10351035
auto last = std::prev(block->end());
1036-
while (last != block->begin() && mlir::isa< hl::SkipStmt >(&*last)) {
1036+
while (last != block->begin() && mlir::isa< hl::NullStmt >(&*last)) {
10371037
last = std::prev(last);
10381038
}
10391039
return &*last;
@@ -1090,7 +1090,7 @@ namespace vast::cg
10901090
}
10911091

10921092
operation default_stmt_visitor::VisitNullStmt(const clang::NullStmt *stmt) {
1093-
return bld.compose< hl::SkipStmt >().bind(self.location(stmt)).freeze();
1093+
return bld.compose< hl::NullStmt >().bind(self.location(stmt)).freeze();
10941094
}
10951095

10961096
operation default_stmt_visitor::VisitCXXThisExpr(const clang::CXXThisExpr *expr) {

lib/vast/Conversion/ToLLVM/IRsToLLVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace vast::conv::irstollvm
4646
ignore_pattern< hl::DeclRefOp >,
4747
ignore_pattern< hl::PredefinedExpr >,
4848
ignore_pattern< hl::AddressOf >,
49-
ignore_pattern< hl::SkipStmt >,
49+
ignore_pattern< hl::NullStmt >,
5050
erase_pattern< hl::StructDeclOp >,
5151
erase_pattern< hl::UnionDeclOp >,
5252
erase_pattern< hl::TypeDeclOp >

0 commit comments

Comments
 (0)