We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d40003 commit 8a21abfCopy full SHA for 8a21abf
tools/cgeist/Lib/CGCall.cc
@@ -561,6 +561,14 @@ ValueCategory MLIRScanner::VisitCallExpr(clang::CallExpr *expr) {
561
/*isReference*/ false);
562
}
563
564
+ if (auto *ic = dyn_cast<ImplicitCastExpr>(expr->getCallee()))
565
+ if (auto *sr = dyn_cast<DeclRefExpr>(ic->getSubExpr())) {
566
+ if (sr->getDecl()->getIdentifier() &&
567
+ sr->getDecl()->getName() == "__builtin_expect") {
568
+ llvm::errs() << "warning, ignoring __builtin_expect\n";
569
+ return Visit(expr->getArg(0));
570
+ }
571
572
if (auto *ic = dyn_cast<ImplicitCastExpr>(expr->getCallee()))
573
if (auto *sr = dyn_cast<DeclRefExpr>(ic->getSubExpr())) {
574
if (sr->getDecl()->getIdentifier() &&
0 commit comments