Halide 20.0.0
Halide compiler and libraries
|
If any_strict_float is true, sets fast math flags for the lifetime of this object, then sets them to strict on destruction. More...
#include <CodeGen_LLVM.h>
Public Member Functions | |
ScopedFastMath (CodeGen_LLVM *) | |
~ScopedFastMath () | |
Public Attributes | |
CodeGen_LLVM * | codegen |
If any_strict_float is true, sets fast math flags for the lifetime of this object, then sets them to strict on destruction.
If any_strict_float is false, does nothing. Any call to an IRBuilder method that starts with "CreateF" should probably be wrapped in one of these, but it's safe to miss one - we just miss out on some optimizations. In this way codegen is designed to fail safe.
Definition at line 190 of file CodeGen_LLVM.h.
Halide::Internal::CodeGen_LLVM::ScopedFastMath::ScopedFastMath | ( | CodeGen_LLVM * | ) |
Halide::Internal::CodeGen_LLVM::ScopedFastMath::~ScopedFastMath | ( | ) |
CodeGen_LLVM* Halide::Internal::CodeGen_LLVM::ScopedFastMath::codegen |
Definition at line 191 of file CodeGen_LLVM.h.