parent
5d40003a8b
commit
8a21abf73e
|
@ -561,6 +561,14 @@ ValueCategory MLIRScanner::VisitCallExpr(clang::CallExpr *expr) {
|
||||||
/*isReference*/ false);
|
/*isReference*/ false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (auto *ic = dyn_cast<ImplicitCastExpr>(expr->getCallee()))
|
||||||
|
if (auto *sr = dyn_cast<DeclRefExpr>(ic->getSubExpr())) {
|
||||||
|
if (sr->getDecl()->getIdentifier() &&
|
||||||
|
sr->getDecl()->getName() == "__builtin_expect") {
|
||||||
|
llvm::errs() << "warning, ignoring __builtin_expect\n";
|
||||||
|
return Visit(expr->getArg(0));
|
||||||
|
}
|
||||||
|
}
|
||||||
if (auto *ic = dyn_cast<ImplicitCastExpr>(expr->getCallee()))
|
if (auto *ic = dyn_cast<ImplicitCastExpr>(expr->getCallee()))
|
||||||
if (auto *sr = dyn_cast<DeclRefExpr>(ic->getSubExpr())) {
|
if (auto *sr = dyn_cast<DeclRefExpr>(ic->getSubExpr())) {
|
||||||
if (sr->getDecl()->getIdentifier() &&
|
if (sr->getDecl()->getIdentifier() &&
|
||||||
|
|
Loading…
Reference in New Issue