aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/Syntax/TreeTest.cpp
diff options
context:
space:
mode:
authorSlava Zakharin <szakharin@nvidia.com>2022-11-07 08:25:19 -0800
committerSlava Zakharin <szakharin@nvidia.com>2022-11-07 09:03:46 -0800
commitddb68f36ae3a7ecb833e3ddf2ab8afe6ed509651 (patch)
treefb10e7b4cecc91b94e286a269a4714fc3954efb5 /clang/unittests/Tooling/Syntax/TreeTest.cpp
parent90ad3e3c02e92cabfc7cf1f0b552ddca73d54cc8 (diff)
downloadllvm-ddb68f36ae3a7ecb833e3ddf2ab8afe6ed509651.zip
llvm-ddb68f36ae3a7ecb833e3ddf2ab8afe6ed509651.tar.gz
llvm-ddb68f36ae3a7ecb833e3ddf2ab8afe6ed509651.tar.bz2
[flang] Initial support for FastMathAttr setup in FirOpBuilder.
Provide FirOpBuilder::setFastMathFlags() to configure FastMathFlags for the builder. Set FastMathAttr for operations based on FirOpBuilder configuration via mlir::OpBuilder::Listener. This is a little bit hacky solution, because we lose the ability to hook other listeners to FirOpBuilder. There are also potential issues with OpBuilder::clone() - the hook will be invoked for cloned operations and will effectively overwrite FastMathAttr with the ones configured in FirOpBuilder, which should not be happening. We should teach mlir::OpBuilder about FastMathAttr setup in future. Reviewed By: jeanPerier, kiranchandramohan Differential Revision: https://reviews.llvm.org/D137390
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
0 files changed, 0 insertions, 0 deletions