diff --git a/docs/LangRef.html b/docs/LangRef.html index ed4e4d58214..d9e02bdeaca 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -306,6 +306,8 @@ 'llvm.stackprotector' Intrinsic
  • 'llvm.objectsize' Intrinsic
  • +
  • + 'llvm.expect' Intrinsic
  • @@ -8205,11 +8207,35 @@ LLVM.

    compile time.

    + +

    + 'llvm.expect' Intrinsic +

    +
    + +
    Syntax:
    +
    +  declare i32 @llvm.expect.i32(i32 <val>, i32 <expected_val>)
    +  declare i64 @llvm.expect.i64(i64 <val>, i64 <expected_val>)
    +
    + +
    Overview:
    +

    The llvm.expect intrinsic provides information about expected (the + most probable) value of val, which can be used by optimizers.

    + +
    Arguments:
    +

    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.

    + +
    Semantics:
    +

    This intrinsic is lowered to the val.

    +