From 5fef792d8c786064e63e8f6c6862caceca542242 Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Sun, 4 Dec 2011 18:29:26 +0000 Subject: [PATCH] Add 'llvm.expect' intrinsic description. llvm-svn: 145792 --- llvm/docs/LangRef.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index ed4e4d58214d..d9e02bdeacae 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/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.

    +