aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSean Silva <silvasean@google.com>2020-09-10 22:04:58 -0700
committerSean Silva <silvasean@google.com>2020-09-11 10:58:35 -0700
commit84a6da67e6b2a76b15ad1862f4cbb7625fe318df (patch)
tree6f2a45686cb5408e76d345105636dc962014b0ab /clang/lib/Frontend/CompilerInvocation.cpp
parentaeb4314391f2afa865fc6650666ea29d9b6afc8a (diff)
downloadllvm-84a6da67e6b2a76b15ad1862f4cbb7625fe318df.zip
llvm-84a6da67e6b2a76b15ad1862f4cbb7625fe318df.tar.gz
llvm-84a6da67e6b2a76b15ad1862f4cbb7625fe318df.tar.bz2
[mlir] Fix some edge cases around 0-element TensorFromElementsOp
This introduces a builder for the more general case that supports zero elements (where the element type can't be inferred from the ValueRange, since it might be empty). Also, fix up some cases in ShapeToStandard lowering that hit this. It happens very easily when dealing with shapes of 0-D tensors. The SameOperandsAndResultElementType is redundant with the new TypesMatchWith and prevented having zero elements. Differential Revision: https://reviews.llvm.org/D87492
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions