diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -12620,13 +12620,18 @@ Overview: """"""""" -The '``llvm.lround.*``' intrinsics returns the operand rounded to the -nearest integer. +The '``llvm.lround.*``' intrinsics return the operand rounded to the nearest +integer with ties away from zero. It will raise an inexact floating-point +exception if the operand is not an integer. An invalid exception is raised +if the result is too large to fit into a supported integer type, and in +this case the result is undefined. + Arguments: """""""""" -The argument is a floating-point number and return is an integer type. +The argument is a floating-point number and the return value is an integer +type. Semantics: """""""""" @@ -12654,13 +12659,17 @@ Overview: """"""""" -The '``llvm.llround.*``' intrinsics returns the operand rounded to the -nearest integer. +The '``llvm.llround.*``' intrinsics return the operand rounded to the nearest +integer with ties away from zero. It will raise an inexact floating-point +exception if the operand is not an integer. An invalid exception is raised +if the result is too large to fit into a supported integer type, and in +this case the result is undefined. Arguments: """""""""" -The argument is a floating-point number and return is an integer type. +The argument is a floating-point number and the return value is an integer +type. Semantics: """""""""" @@ -12694,13 +12703,18 @@ Overview: """"""""" -The '``llvm.lrint.*``' intrinsics returns the operand rounded to the -nearest integer. +The '``llvm.lrint.*``' intrinsics return the operand rounded to the nearest +integer. An inexact floating-point exception will be raised if the operand +is not an integer. An invalid exception is raised if the result is too +large to fit into a supported integer type, and in this case the result +is undefined. + Arguments: """""""""" -The argument is a floating-point number and return is an integer type. +The argument is a floating-point number and the return value is an integer +type. Semantics: """""""""" @@ -12728,13 +12742,17 @@ Overview: """"""""" -The '``llvm.llrint.*``' intrinsics returns the operand rounded to the -nearest integer. +The '``llvm.llrint.*``' intrinsics return the operand rounded to the nearest +integer. An inexact floating-point exception will be raised if the operand +is not an integer. An invalid exception is raised if the result is too +large to fit into a supported integer type, and in this case the result +is undefined. Arguments: """""""""" -The argument is a floating-point number and return is an integer type. +The argument is a floating-point number and the return value is an integer +type. Semantics: """"""""""