Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitj1 committed Dec 29, 2023
1 parent 04b3725 commit 3b193b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tools/cgeist/Lib/CGCall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ MLIRScanner::EmitClangBuiltinCallExpr(clang::CallExpr *expr) {
ValueCategory(builder.create<arith::ConstantIntOp>(loc, 0, resultType),
/*isRef*/ false));
}
case Builtin::BIsqrt:
case Builtin::BIsqrt:
case Builtin::BIsqrtf:
case Builtin::BIsqrtl:
case Builtin::BI__builtin_sqrt:
Expand All @@ -554,8 +554,7 @@ case Builtin::BIsqrt:
assert(!v.isReference);
Value res = builder.create<math::SqrtOp>(loc, v.val);
auto postTy = getMLIRType(expr->getType());
return success(
ValueCategory(res, /*isRef*/ false));
return success(ValueCategory(res, /*isRef*/ false));
}
case Builtin::BI__builtin_clzs:
case Builtin::BI__builtin_clz:
Expand Down
2 changes: 1 addition & 1 deletion tools/cgeist/Lib/clang-mlir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ MLIRScanner::EmitBuiltinOps(clang::CallExpr *expr) {
/*isReference*/ false),
true);
}
if (sr->getDecl()->getIdentifier() &&
if (sr->getDecl()->getIdentifier() &&
(sr->getDecl()->getName() == "expf" ||
sr->getDecl()->getName() == "exp")) {
std::vector<mlir::Value> args;
Expand Down

0 comments on commit 3b193b6

Please sign in to comment.