[clang] [CIR] Add support for __builtin_expect (PR #144726)

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 11:12:23 PDT 2025


================
@@ -989,6 +989,19 @@ mlir::LogicalResult CIRToLLVMConstantOpLowering::matchAndRewrite(
   return mlir::success();
 }
 
+mlir::LogicalResult CIRToLLVMExpectOpLowering::matchAndRewrite(
+    cir::ExpectOp op, OpAdaptor adaptor,
+    mlir::ConversionPatternRewriter &rewriter) const {
----------------
bcardosolopes wrote:

Can you add an assert on missing feature to track we don't want to generate anything here under `-O0` in the future?

https://github.com/llvm/llvm-project/pull/144726


More information about the cfe-commits mailing list