aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorSpenser Bauman <sbauman@mathworks.com>2023-12-01 10:08:16 -0500
committerGitHub <noreply@github.com>2023-12-01 15:08:16 +0000
commit852f6be6967911de8ab6fe61b5a632366cc0804e (patch)
tree00bf416b0cc17648e030abb44a0e0f2e33e836f5 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent8c130996c03f6c5993a0989a5c6fa95d1437995a (diff)
downloadllvm-852f6be6967911de8ab6fe61b5a632366cc0804e.zip
llvm-852f6be6967911de8ab6fe61b5a632366cc0804e.tar.gz
llvm-852f6be6967911de8ab6fe61b5a632366cc0804e.tar.bz2
[mlir][tosa] Improve tosa-infer-shapes for ops consumed by non-TOSA operators (#72715)
TOSA operators consumed by non-TOSA ops generally do not have their types inferred, as that would alter the types expected by their consumers. This prevents type refinement on many TOSA operators when the IR contains a mix of dialects. This change modifies tosa-infer-shapes to update the types of all TOSA operators during inference. When a consumer of that TOSA op is not safe to update, a tensor.cast is inserted back to the original type. This behavior is similar to how TOSA ops consumed by func.return are handled. This allows for more type refinement of TOSA ops, and the additional tensor.cast operators may be removed by later canonicalizations.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions