From 5fef792d8c786064e63e8f6c6862caceca542242 Mon Sep 17 00:00:00 2001
From: Jakub Staszak
+ declare i32 @llvm.expect.i32(i32 <val>, i32 <expected_val>) + declare i64 @llvm.expect.i64(i64 <val>, i64 <expected_val>) ++ +
The llvm.expect intrinsic provides information about expected (the + most probable) value of val, which can be used by optimizers.
+ +The llvm.expect intrinsic takes two arguments. The first + argument is a value. The second argument is an expected value, this needs to + be a constant value, variables are not allowed.
+ +This intrinsic is lowered to the val.