Skip to content

Commit dba2962

Browse files
kumasentoivanradanov
authored andcommitted
Support Polygeist e5b8b83
1 parent e4e5f35 commit dba2962

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tools/polymer/.github/workflows/buildAndTest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v2
3636
with:
3737
repository: "wsmoses/Polygeist"
38-
ref: "daeb952678b1d46c867c94ed2f20d78e1a3d5ec5"
38+
ref: "e5b8b83312c7a5f6fd94ea1a2cda87e54c4451fd"
3939
path: "polygeist"
4040
submodules: "true"
4141

tools/polymer/lib/Transforms/FoldSCFIf.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct MatchIfElsePass : PassWrapper<MatchIfElsePass, OperationPass<FuncOp>> {
105105

106106
// If there is no else block, initialize one with a terminating yield.
107107
if (!ifOp.elseBlock()) {
108-
ifOp.elseRegion().emplaceBlock();
108+
ifOp.getElseRegion().emplaceBlock();
109109

110110
b.setInsertionPointToStart(ifOp.elseBlock());
111111
b.create<scf::YieldOp>(loc);
@@ -212,7 +212,7 @@ static LogicalResult liftStoreOps(scf::IfOp ifOp, FuncOp f, OpBuilder &b) {
212212
SmallVector<Type> resultTypes(ifOp.getResultTypes());
213213
resultTypes.append(storeTypes);
214214

215-
scf::IfOp newIfOp = b.create<scf::IfOp>(loc, resultTypes, ifOp.condition(),
215+
scf::IfOp newIfOp = b.create<scf::IfOp>(loc, resultTypes, ifOp.getCondition(),
216216
/*withElseRegion=*/true);
217217

218218
auto cloneBlock = [&](Block *target, Block *source) {
@@ -334,7 +334,7 @@ static bool foldSCFIf(scf::IfOp ifOp, FuncOp f, OpBuilder &b) {
334334
cloneAfter(ifOp.elseBlock(), elseResults);
335335

336336
for (auto ifResult : enumerate(ifOp.getResults())) {
337-
Value newResult = b.create<SelectOp>(loc, ifOp.condition(),
337+
Value newResult = b.create<SelectOp>(loc, ifOp.getCondition(),
338338
thenResults[ifResult.index()],
339339
elseResults[ifResult.index()]);
340340
ifResult.value().replaceAllUsesWith(newResult);

tools/polymer/lib/Transforms/ScopStmtOpt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static CallOp findCallOpForFunc(ModuleOp m, FuncOp func) {
283283

284284
// Find the corresponding call op.
285285
m.walk([&](CallOp callOp) {
286-
if (callOp.callee() == func.getName()) {
286+
if (callOp.getCallee() == func.getName()) {
287287
// TODO: implement the support for multiple calls.
288288
assert(!call && "There should be only one call to the target function.");
289289
call = callOp;

tools/polymer/polygeist-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
daeb952678b1d46c867c94ed2f20d78e1a3d5ec5
1+
e5b8b83312c7a5f6fd94ea1a2cda87e54c4451fd

0 commit comments

Comments
 (0)