Skip to content

Commit 0474585

Browse files
committed
Update Range description
1 parent b92c82a commit 0474585

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,8 +2843,12 @@ def CIR_ComplexMulOp : CIR_Op<"complex.mul", [
28432843
The `cir.complex.mul` operation takes two complex numbers and returns
28442844
their product.
28452845

2846-
Range is used to controls the various implementations for complex
2847-
multiplication.
2846+
Range is used to select the implementation used when the operation
2847+
is lowered to the LLVM dialect. For multiplication, 'improved',
2848+
'promoted', and 'basic' are all handled equivalently, producing the
2849+
algebraic formula with no special handling for NaN value. If 'full' is
2850+
used, a runtime-library function is called if one of the intermediate
2851+
calculations produced a NaN value.
28482852

28492853
Example:
28502854

clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static mlir::Value buildComplexBinOpLibCall(
167167

168168
cir::FuncType libFuncTy = cir::FuncType::get(libFuncInputTypes, ty);
169169

170-
// Inserting a declaration for the runtime function to be used in Complex
170+
// Insert a declaration for the runtime function to be used in Complex
171171
// multiplication and division when needed
172172
cir::FuncOp libFunc;
173173
{

0 commit comments

Comments
 (0)