summaryrefslogtreecommitdiffstats
path: root/mlir
Commit message (Collapse)AuthorAgeFilesLines
...
* Update "Table-driven Op Definition Specification" docLei Zhang2019-05-202-192/+617
| | | | | | | | | This CL turns the previous "Op Definition" doc into a manual for table-driven op definition specification by fleshing out more details of existing mechanisms. -- PiperOrigin-RevId: 248013274
* Fix -Wsign-compare in Toy LateLowering.Jacques Pienaar2019-05-201-2/+2
| | | | | | -- PiperOrigin-RevId: 248005642
* Remove unused function and avoid unused variable warning. NFC.Jacques Pienaar2019-05-202-1/+3
| | | | | | -- PiperOrigin-RevId: 247991231
* Add a utility method to MLIRContext get a registered dialect with the ↵River Riddle2019-05-207-16/+21
| | | | | | | | | | | | | | derived type instead of the string name. The derived dialect type must provide a static 'getDialectNamespace' method. This means that we can now do something like: ctx->getRegisteredDialect<LLVMDialect>(); as opposed to: static_cast<LLVMDialect *>(ctx->getRegisteredDialect("llvm"); -- PiperOrigin-RevId: 247989896
* Use the DialectSymbolRegistry to reserve space in the Attribute::Kind ↵River Riddle2019-05-206-124/+143
| | | | | | | | enum to allow for dialects to define attribute kinds. The currently defined attributes kinds have now been moved to StandardAttributes. -- PiperOrigin-RevId: 247988373
* Move MemRefCastOp and TensorCastOp to the Op Definition Generation ↵River Riddle2019-05-204-126/+105
| | | | | | | | framework. -- PiperOrigin-RevId: 247981385
* Move the definition of Return op to the Op Definition Generation framework.River Riddle2019-05-203-45/+39
| | | | | | -- PiperOrigin-RevId: 247980849
* NFC: Cleanup the definitions of the Location classes.River Riddle2019-05-204-30/+38
| | | | | | -- PiperOrigin-RevId: 247979132
* Change a few errors emitted by the parser to be notes instead.River Riddle2019-05-204-26/+30
| | | | | | -- PiperOrigin-RevId: 247978922
* Move Affine Expressions and Affine Structures documentation from LangRef ↵Andy Davis2019-05-202-289/+285
| | | | | | | | to Affine Dialect doc. -- PiperOrigin-RevId: 247971222
* Pipe Linalg to a cblas call via mlir-cpu-runnerNicolas Vasilache2019-05-208-275/+456
| | | | | | | | | This CL extends the execution engine to allow the additional resolution of symbols names that have been registered explicitly. This allows linking static library symbols that have not been explicitly exported with the -rdynamic linking flag (which is deemed too intrusive). -- PiperOrigin-RevId: 247969504
* Add test for affine-loop-tile pass with a loop of trip count 1Tamas Berghammer2019-05-201-0/+16
| | | | | | -- PiperOrigin-RevId: 247950156
* Update cmakelist to reflect renamed filename.Jacques Pienaar2019-05-201-1/+1
| | | | | | -- PiperOrigin-RevId: 247946677
* Refactor the includes of Function.h now that the dependency on Operation ↵River Riddle2019-05-205-8/+20
| | | | | | | | has been removed. The dependency was on the op casting methods, which have now moved out of Operation, used by the walker. -- PiperOrigin-RevId: 247944666
* Update region documentationAlex Zinenko2019-05-202-33/+154
| | | | | | | | | | | | | | Restructure the Regions section in LangRef to avoid having a wall of text and reflect a recent evolution of the design. Unspecify region types, that are put on hold until use cases arise. Update the Rationale doc with a list of design decisions related to regions. Separately list the design alternatives that were considered and discarded due to the lack of existing use cases. -- PiperOrigin-RevId: 247943144
* Factor out loop interchange code from LoopFusion into LoopUtils (NFC).Andy Davis2019-05-203-102/+143
| | | | | | -- PiperOrigin-RevId: 247926512
* Remove the explicit "friend Operation" statement from each of the ↵River Riddle2019-05-2016-68/+0
| | | | | | | | derived operations now that op casting is no longer inside of Operation. -- PiperOrigin-RevId: 247791672
* Replace Operation::isa with llvm::isa.River Riddle2019-05-2033-104/+92
| | | | | | -- PiperOrigin-RevId: 247789235
* Replace Operation::cast with llvm::cast.River Riddle2019-05-2041-147/+139
| | | | | | -- PiperOrigin-RevId: 247785983
* Add support for using llvm::dyn_cast/cast/isa for operation casts and ↵River Riddle2019-05-2043-130/+140
| | | | | | | | replace usages of Operation::dyn_cast with llvm::dyn_cast. -- PiperOrigin-RevId: 247780086
* Automated rollback of changelist 247778391.MLIR Team2019-05-2043-140/+130
| | | | PiperOrigin-RevId: 247778691
* Add support for using llvm::dyn_cast/cast/isa for operation casts and ↵River Riddle2019-05-2043-130/+140
| | | | | | | | replace usages of Operation::dyn_cast with llvm::dyn_cast. -- PiperOrigin-RevId: 247778391
* Rename Op::isClassFor to Op::classof to match the LLVM isa/dyn_cast ↵River Riddle2019-05-205-16/+16
| | | | | | | | standard naming scheme. -- PiperOrigin-RevId: 247771192
* Remove several heavy includes from Diagnostics.h by a moving a couple of ↵River Riddle2019-05-202-40/+74
| | | | | | | | fields/methods to the .cpp file. -- PiperOrigin-RevId: 247768443
* rename -memref-dependence-check to -test-memref-dependence-check since itChris Lattner2019-05-204-16/+16
| | | | | | | | | | | | generates remarks for testing, it isn't itself a transformation. While there, upgrade its diagnostic emission to use the streaming interface. Prune some unnecessary #includes. -- PiperOrigin-RevId: 247768062
* Remove some unnecessary or duplicated header includes from IR/.River Riddle2019-05-2012-19/+2
| | | | | | -- PiperOrigin-RevId: 247762545
* Cleanups and simplifications to code, noticed by inspection. NFC.Chris Lattner2019-05-204-24/+7
| | | | | | -- PiperOrigin-RevId: 247758075
* Revert "Pass for outlining gpu.launch operation bodies into kernel functions ↵Mehdi Amini2019-05-106-237/+4
| | | | | | | | | | called by gpu.launch_func operations" OSS build was broken (missing CMakeLists.txt changes and compilation failures on Ubuntu) Automated rollback of changelist 247564213. PiperOrigin-RevId: 247713812
* Change the diagnostic handler to accept Diagnostic instead of ↵River Riddle2019-05-103-102/+90
| | | | | | | | location/message/kind. This opens the door for many more powerful use cases: fixits, colors, etc. -- PiperOrigin-RevId: 247705673
* [TableGen] Return base attribute's name for anonymous ↵Lei Zhang2019-05-104-3/+16
| | | | | | | | OptionalAttr/DefaultValuedAttr -- PiperOrigin-RevId: 247693280
* Move the definitions for CallOp and IndirectCallOp to the Op Definition ↵River Riddle2019-05-106-143/+139
| | | | | | | | Generator. -- PiperOrigin-RevId: 247686419
* Move the definitions of BranchOp, DimOp, and ExtractElementOp to Op ↵River Riddle2019-05-105-162/+155
| | | | | | | | Definition Generator. -- PiperOrigin-RevId: 247686212
* Ensure that all attributes are registered with a dialect. This is one of ↵River Riddle2019-05-106-45/+79
| | | | | | | | the final steps towards allowing dialects to define their own attributes, but there are still several things missing before this is fully supported(e.g. parsing/printing ). -- PiperOrigin-RevId: 247684322
* Add support to the SourceMgrDiagnosticHandlers to auto-load new source ↵River Riddle2019-05-102-6/+6
| | | | | | | | files seen in diagnostics. -- PiperOrigin-RevId: 247681779
* Add llvm_unreachable in unreachable path to silence GCC warning (NFC)Mehdi Amini2019-05-107-1/+15
| | | | | | | | | The switch is supposed to be fully covered, but GCC warns that: "control reaches end of non-void function" -- PiperOrigin-RevId: 247672430
* Fix unused variable warning in the Toy tutorial (NFC)Mehdi Amini2019-05-102-2/+0
| | | | | | -- PiperOrigin-RevId: 247672377
* Remove unused method `parseIntegerSetInline` and `parseAffineMapInline` ↵Mehdi Amini2019-05-101-48/+0
| | | | | | | | | | in Parser (NFC) Fix GCC warning. -- PiperOrigin-RevId: 247672318
* Remove unused `signature()` from `OpMethod` class (private to ↵Mehdi Amini2019-05-101-3/+0
| | | | | | | | mlir-tblgen) (NFC) -- PiperOrigin-RevId: 247672280
* Use `uint8_t` storage for enum classMehdi Amini2019-05-101-1/+1
| | | | | | | | | | This is intended to fix a GCC warning: > mlir/lib/IR/LocationDetail.h:32:25: warning: ‘mlir::detail::LocationStorage::kind’ is too small to hold all values of ‘enum class mlir::Location::Kind’ -- PiperOrigin-RevId: 247672213
* Remove extra `;` after function definition (NFC)Mehdi Amini2019-05-105-5/+5
| | | | | | | | Fix a GCC warning -- PiperOrigin-RevId: 247670176
* Replace dyn_cast<> with isa<> when the returned value is unused (NFC)Mehdi Amini2019-05-102-4/+3
| | | | | | | | Fix a gcc warning. -- PiperOrigin-RevId: 247669360
* Refactor the SourceMgrDiagnosticHandlers to support more locations than ↵River Riddle2019-05-101-9/+30
| | | | | | | | FileLineColLoc. -- PiperOrigin-RevId: 247662828
* Remove unused Vectorize constructor (NFC)Mehdi Amini2019-05-101-11/+0
| | | | | | | | Fix gcc warning. -- PiperOrigin-RevId: 247647114
* Remove unused `hasSingleNonZeroAt` function (NFC)Mehdi Amini2019-05-101-15/+0
| | | | | | | | Fix clang warning. -- PiperOrigin-RevId: 247623306
* Make header-defined function inline instead of static (NFC)Mehdi Amini2019-05-101-1/+1
| | | | | | | | | Fix warning for unused function when the header is included in an implementation file that does not use this function. -- PiperOrigin-RevId: 247622232
* Templatize the integer constructors for DiagnosticArgument to avoid ↵River Riddle2019-05-101-7/+12
| | | | | | | | ambiguous conversions. -- PiperOrigin-RevId: 247621058
* Emit cast instead of dyn_cast_or_null where attribute is required.Jacques Pienaar2019-05-103-4/+8
| | | | | | | | | | If the attribute needs to exist for the validity of the op, then no need to use dyn_cast_or_null as the op would be invalid in the cases where cast fails, so just use cast. -- PiperOrigin-RevId: 247617696
* Reorder edsc python tests - NFCNicolas Vasilache2019-05-101-275/+247
| | | | | | | | | | This CL orders the python tests to: 1. allow introspecting on the EdscTest class and avoid the error-prone process of having to add the test call by hand; 2. account for differences in the order of `dir(edscTest)` between python2, <= python3.5 and >= python 3.6 -- PiperOrigin-RevId: 247609687
* Add support to SourceMgrDiagnosticHandler for handling the case where ↵River Riddle2019-05-102-15/+25
| | | | | | | | the llvm::SourceMgr has no main file. -- PiperOrigin-RevId: 247605584
* Verify that kernel functions referenced by gpu.launch_func have a ↵Thomas Joerg2019-05-104-6/+30
| | | | | | | | | | gpu.kernel attribute. Also extract gpu.launch_func's function attribute name into a constant. -- PiperOrigin-RevId: 247595352
OpenPOWER on IntegriCloud