llvm-project/mlir/lib/TableGen
Vladislav Vinogradov 5d613e42d3 [mlir][ODS] Use StringLiteral instead of StringRef when applicable
Use `StringLiteral` for function return type if it is known to return
constant string literals only.

This will make it visible to API users, that such values can be safely
stored, since they refers to constant data, which will never be deallocated.

`StringRef` is general is not safe to store for a long term,
since it might refer to temporal data allocated in heap.

Add `inline` and `constexpr` methods support to `OpMethod`.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D97390
2021-03-03 16:15:12 +03:00
..
Argument.cpp [MLIR][NFC] Remove tblgen:: prefix in TableGen/*.cpp files 2020-08-12 14:41:18 -07:00
Attribute.cpp [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
Builder.cpp [mlir][ODS] Add a C++ abstraction for OpBuilders 2021-01-11 12:06:22 -08:00
CMakeLists.txt [mlir][ODS] Add a C++ abstraction for OpBuilders 2021-01-11 12:06:22 -08:00
Constraint.cpp [mlir][ODS] Rename several uses of 'description' to 'summary' 2021-01-06 14:18:58 -08:00
Dialect.cpp [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
Format.cpp Import llvm::StringSwitch into mlir namespace. 2020-10-08 11:39:24 +02:00
Interfaces.cpp [mlir][ODS] Add support for specifying the namespace of an interface. 2020-07-12 14:18:32 -07:00
OpClass.cpp [mlir][ODS] Use StringLiteral instead of StringRef when applicable 2021-03-03 16:15:12 +03:00
OpTrait.cpp [mlir][ODS] Allow to specify custom namespace for `NativeOpTrait` 2021-02-08 10:25:45 +03:00
Operator.cpp [mlir][ODS] Add a C++ abstraction for OpBuilders 2021-01-11 12:06:22 -08:00
Pass.cpp Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
Pattern.cpp [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
Predicate.cpp Import llvm::StringSwitch into mlir namespace. 2020-10-08 11:39:24 +02:00
Region.cpp [mlir][ODS] Add support for variadic regions. 2020-04-05 01:03:38 -07:00
SideEffects.cpp [mlir][ODS] Add support for specifying the namespace of an interface. 2020-07-12 14:18:32 -07:00
Successor.cpp [llvm][ADT] Move TypeSwitch class from MLIR to LLVM 2020-04-14 15:14:41 -07:00
Type.cpp [mlir][ODS] Fix the use of cppClassName in Type constraints for TypeDefs 2021-01-06 14:18:58 -08:00
TypeDef.cpp [mlir][IR] Refactor the `getChecked` and `verifyConstructionInvariants` methods on Attributes/Types 2021-02-22 17:37:49 -08:00