Given operands for an intrinsic, fold the result or return null.
Declared in <llvm/Analysis/InstructionSimplify.h>
Value*
simplifyIntrinsic(
Intrinsic::ID IID,
Type* ReturnType,
ArrayRef<Value*> Args,
FastMathFlags FMF,
SimplifyQuery const& Q,
Function* CxtF = nullptr,
fp::ExceptionBehavior ExBehavior = fp::ebIgnore,
RoundingMode Rounding = RoundingMode::NearestTiesToEven);
Context Function is passed as CxtF. ExBehavior and Rounding only apply to constrained FP intrinsics.
The folded value, or null if no simplification was found.
| Name | Description |
|---|---|
| IID | Intrinsic identifier. |
| ReturnType | Return type of the intrinsic. |
| Args | Operand values of the intrinsic. |
| FMF | Fast-math flags to honor while folding. |
| Q | Simplification query providing analyses and flags. |
| CxtF | Optional context function for the intrinsic. |
| ExBehavior | Floating-point exception behavior to assume. |
| Rounding | Rounding mode to assume. |