llvm/mlir/lib/Dialect
Chris Lattner 41d4aa7de6 [SymbolRefAttr] Revise SymbolRefAttr to hold a StringAttr.
SymbolRefAttr is fundamentally a base string plus a sequence
of nested references.  Instead of storing the string data as
a copies StringRef, store it as an already-uniqued StringAttr.

This makes a lot of things simpler and more efficient because:
1) references to the symbol are already stored as StringAttr's:
   there is no need to copy the string data into MLIRContext
   multiple times.
2) This allows pointer comparisons instead of string
   comparisons (or redundant uniquing) within SymbolTable.cpp.
3) This allows SymbolTable to hold a DenseMap instead of a
   StringMap (which again copies the string data and slows
   lookup).

This is a moderately invasive patch, so I kept a lot of
compatibility APIs around.  It would be nice to explore changing
getName() to return a StringAttr for example (right now you have
to use getNameAttr()), and eliminate things like the StringRef
version of getSymbol.

Differential Revision: https://reviews.llvm.org/D108899
2021-08-29 21:54:47 -07:00
..
Affine [mlir][scf] Simplify affine.min ops after loop peeling 2021-08-19 17:24:53 +09:00
AMX
ArmNeon
ArmSVE
Async [mlir] Fix ControlFlowInterfaces implementation for Async dialect 2021-08-20 12:14:45 +03:00
Complex
DLTI [mlir] Update DialectAsmParser::parseString to use std::string instead of StringRef 2021-08-25 09:27:35 +00:00
EmitC [mlir] Update DialectAsmParser::parseString to use std::string instead of StringRef 2021-08-25 09:27:35 +00:00
GPU [SymbolRefAttr] Revise SymbolRefAttr to hold a StringAttr. 2021-08-29 21:54:47 -07:00
Linalg [mlir][SCF] Canonicalize dim(x) where x is an iter_arg 2021-08-30 01:39:56 +00:00
LLVMIR [SymbolRefAttr] Revise SymbolRefAttr to hold a StringAttr. 2021-08-29 21:54:47 -07:00
Math [mlir] Make polynomial approximation emit std instead of LLVM ops 2021-08-11 16:37:21 +02:00
MemRef [mlir][MemRef] Fix canonicalization of BufferCast(TensorLoad). 2021-08-06 08:32:35 +02:00
OpenACC Add some missing CMake dependencies between MLIR dialects (NFC) 2021-07-28 18:37:05 +00:00
OpenMP [MLIR][OpenMP] Add support for critical construct 2021-08-03 10:50:21 +01:00
PDL [PDL] Fix the builders for OperationOp and PatternOp 2021-07-27 23:59:14 +00:00
PDLInterp
Quant
SCF [mlir][SCF] Canonicalize dim(x) where x is an iter_arg 2021-08-30 01:39:56 +00:00
Shape Enables inferring return types for Shape op if possible 2021-08-18 21:36:55 +00:00
SparseTensor [SymbolRefAttr] Revise SymbolRefAttr to hold a StringAttr. 2021-08-29 21:54:47 -07:00
SPIRV [SymbolRefAttr] Revise SymbolRefAttr to hold a StringAttr. 2021-08-29 21:54:47 -07:00
StandardOps [mlir] Add support for VariadicOfVariadic operands 2021-08-23 20:32:31 +00:00
Tensor [mlir][tensor] Insert explicit tensor.cast ops for insert_slice src 2021-08-24 19:45:04 +09:00
Tosa [mlir][tosa] Add folders for trivial tosa operation cases 2021-08-10 14:43:00 -07:00
Utils [mlir][memref] Fix collapsed shape ops memref.cast folding with changed type 2021-07-28 10:19:20 +00:00
Vector [mlir] Add support for moving reductions to outer most dimensions in vector.multi_reduction 2021-08-13 12:59:50 -07:00
X86Vector [mlir] Cleanup: Fix warnings in MLIR 2021-08-06 10:36:37 +09:00
CMakeLists.txt
Traits.cpp