diff options
| author | George Mitenkov <georgemitenk0v@gmail.com> | 2020-06-10 19:10:26 -0400 |
|---|---|---|
| committer | Lei Zhang <antiagainst@google.com> | 2020-06-10 19:10:31 -0400 |
| commit | d93d8fcdec68211fd3ac7f586fa67bc065acef6a (patch) | |
| tree | c52187c108538a7333cfbe81a41bf452324de9b6 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
| parent | 2638aafe1203f64983017f8998fb09ce986a1b28 (diff) | |
| download | llvm-d93d8fcdec68211fd3ac7f586fa67bc065acef6a.zip llvm-d93d8fcdec68211fd3ac7f586fa67bc065acef6a.tar.gz llvm-d93d8fcdec68211fd3ac7f586fa67bc065acef6a.tar.bz2 | |
[MLIR][SPIRVToLLVM] Implemented conversion for arithmetic ops and 3 bitwise ops.
Following the previous revision `D81100`, this commit implements a templated class
that would provide conversion patterns for “straightforward” SPIR-V ops into
LLVM dialect. Templating allows to abstract away from concrete implementation
for each specific op. Those are mainly binary operations. Currently supported
and tested ops are:
- Arithmetic ops: `IAdd`, `ISub`, `IMul`, `FAdd`, `FSub`, `FMul`, `FDiv`, `FNegate`,
`SDiv`, `SRem` and `UDiv`
- Bitwise ops: `BitwiseAnd`, `BitwiseOr`, `BitwiseXor`
The implementation relies on `SPIRVToLLVMConversion` class that makes use of
`OpConversionPattern`.
Differential Revision: https://reviews.llvm.org/D81305
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions
