[clang] [CIR] Add X86 prefetch builtins (PR #168051)
Hendrik Hübner via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 18 16:50:25 PST 2025
================
@@ -540,12 +540,20 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
}
// Now see if we can emit a target-specific builtin.
- if (mlir::Value v = emitTargetBuiltinExpr(builtinID, e, returnValue)) {
+ std::optional<mlir::Value> valueOpt =
----------------
HendrikHuebner wrote:
I updated the code. I would still like to return the optional for `emitX86BuiltinExpr`, because this keeps the code a little cleaner since we don't have to call `RValue::get` for each of the cases in the big switch statement.
https://github.com/llvm/llvm-project/pull/168051
More information about the cfe-commits
mailing list