summaryrefslogtreecommitdiffstats
path: root/mlir/docs
Commit message (Collapse)AuthorAgeFilesLines
* [mlir] NFC: Rename index_t to index_typeRainer Orth2020-03-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | mlir currently fails to build on Solaris: /vol/llvm/src/llvm-project/dist/mlir/lib/Conversion/VectorToLoops/ConvertVectorToLoops.cpp:78:20: error: reference to 'index_t' is ambiguous IndexHandle zero(index_t(0)), one(index_t(1)); ^ /usr/include/sys/types.h:103:16: note: candidate found by name lookup is 'index_t' typedef short index_t; ^ /vol/llvm/src/llvm-project/dist/mlir/include/mlir/EDSC/Builders.h:27:8: note: candidate found by name lookup is 'mlir::edsc::index_t' struct index_t { ^ and many more. Given that POSIX reserves all identifiers ending in `_t` 2.2.2 The Name Space <https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html>, it seems quite unwise to use such identifiers in user code, even more so without a distinguished prefix. The following patch fixes this by renaming `index_t` to `index_type`. cases. Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`. Differential Revision: https://reviews.llvm.org/D72619 (cherry picked from commit 002ec79f979b9da9dedafe7ea036e00c90a9fbb7)
* [mlir][spirv] Properly support SPIR-V conversion targetLei Zhang2020-01-141-8/+36
| | | | | | | | | | | | | | | | This commit defines a new SPIR-V dialect attribute for specifying a SPIR-V target environment. It is a dictionary attribute containing the SPIR-V version, supported extension list, and allowed capability list. A SPIRVConversionTarget subclass is created to take in the target environment and sets proper dynmaically legal ops by querying the op availability interface of SPIR-V ops to make sure they are available in the specified target environment. All existing conversions targeting SPIR-V is changed to use this SPIRVConversionTarget. It probes whether the input IR has a `spv.target_env` attribute, otherwise, it uses the default target environment: SPIR-V 1.0 with Shader capability and no extra extensions. Differential Revision: https://reviews.llvm.org/D72256
* [MLIR] Fix broken link locations after move to monorepoDaniel Galvez2020-01-142-5/+5
| | | | | | | | | | I used the codemod python tool to do this with the following commands: codemod 'tensorflow/mlir/blob/master/include' 'llvm/llvm-project/blob/master/mlir/include' codemod 'tensorflow/mlir/blob/master' 'llvm/llvm-project/blob/master/mlir' codemod 'tensorflow/mlir' 'llvm-project/llvm' Differential Revision: https://reviews.llvm.org/D72244
* [mlir] Change the syntax of AffineMapAttr and IntegerSetAttr to avoid ↵River Riddle2020-01-133-36/+36
| | | | | | | | | | conflicts with function types. Summary: The current syntax for AffineMapAttr and IntegerSetAttr conflict with function types, making it currently impossible to round-trip function types(and e.g. FuncOp) in the IR. This revision changes the syntax for the attributes by wrapping them in a keyword. AffineMapAttr is wrapped with `affine_map<>` and IntegerSetAttr is wrapped with `affine_set<>`. Reviewed By: nicolasvasilache, ftynse Differential Revision: https://reviews.llvm.org/D72429
* [mlir] NFC: Remove Value::operator* and Value::operator-> now that Value is ↵River Riddle2020-01-115-12/+11
| | | | | | | | | | properly value-typed. Summary: These were temporary methods used to simplify the transition. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D72548
* fix another typo to cycle botsNico Weber2020-01-091-1/+1
|
* [mlir][spirv] Update SPIR-V documentation with information aboutMaheshRavishankar2020-01-051-6/+113
| | | | | | | | | lowering to SPIR-V dialect. Add information about - SPIRVTypeConverter - SPIRVOpLowering - Utility functions used in lowering to SPIR-V dialect.
* [mlir][Vector] NFC - Add documentation for the VectorOps dialect.Nicolas Vasilache2020-01-031-7/+486
|
* [mlir] NFC: Fix broken links in docsKazuaki Ishizaki2020-01-034-9/+9
| | | | | | | | | | | | | | Summary: This commit fixes missing links that are caused by the repository movement. Reviewers: Jim, rriddle, jpienaar Reviewed By: Jim, rriddle, jpienaar Subscribers: arpith-jacob, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D72065
* fix doc grammar-o to cycle botsNico Weber2020-01-021-1/+1
|
* [mlir][spirv] Fix links in docs and update dialect docsLei Zhang2020-01-011-12/+12
| | | | | | | | | | | Summary: This commit fixes links to code directories and uses doc links on mlir.llvm.org where possible. The docs in TableGen dialect definition is also updated to reflect recent developments. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D72051
* [mlir][docs] Remove redundant path prefixJacques Pienaar2019-12-311-1/+1
| | | | ./ is not needed.
* [mlir] Make code blocks more consistentJacques Pienaar2019-12-318-43/+42
| | | | Use the same form specification for the same type of code.
* [mlir][spirv] Update docs regarding how to define new ops and typesLei Zhang2019-12-271-2/+48
| | | | | | | This commit expands on the steps of defining a new SPIR-V op and also provides pointers on how to define a new SPIR-V specific type. Differential Revision: https://reviews.llvm.org/D71928
* [MLIR][spirv] Fix links in docs after repo migrationLei Zhang2019-12-271-14/+15
| | | | | | | | | | | | | | | | Summary: This commit updates links to SPIR-V dialect code to LLVM monorepo on GitHub. It also points to the operation doc on mlir.llvm.org. Reviewers: mravishankar, denis13, ftynse Reviewed By: ftynse Subscribers: merge_guards_bot, mehdi_amini, rriddle, jpienaar, burmako, shauheen, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71926
* Remove static MLIR doc ; they are already on the websiteMehdi Amini2019-12-243-452/+0
|
* Adjust some MLIR paths and docsMehdi Amini2019-12-2439-0/+17222
OpenPOWER on IntegriCloud