aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/RustDemangle.cpp
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2021-06-07 12:09:25 -0400
committerclementval <clementval@gmail.com>2021-06-07 12:10:03 -0400
commitfb5b590b5e18796bf850170946f15fc10ab9394a (patch)
tree4f10149ba207b3f1b9430756d9ec0e334e636482 /llvm/lib/Demangle/RustDemangle.cpp
parentaa4e6a609acdd00e06b54f525054bd5cf3624f0f (diff)
downloadllvm-fb5b590b5e18796bf850170946f15fc10ab9394a.zip
llvm-fb5b590b5e18796bf850170946f15fc10ab9394a.tar.gz
llvm-fb5b590b5e18796bf850170946f15fc10ab9394a.tar.bz2
[mlir][openacc] Add conversion for if operand to scf.if for standalone data operation
This patch convert the if condition on standalone data operation such as acc.update, acc.enter_data and acc.exit_data to a scf.if with the operation in the if region. It removes the operation when the if condition is constant and false. It removes the the condition if it is contant and true. Conversion to scf.if is done in order to use the translation to LLVM IR dialect out of the box. Not sure this is the best approach or we should perform this during the translation from OpenACC to LLVM IR dialect. Any thoughts welcome. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D103325
Diffstat (limited to 'llvm/lib/Demangle/RustDemangle.cpp')
0 files changed, 0 insertions, 0 deletions