llvm-capstone/mlir/lib
Andrei Golubev 3df71e5a3f [mlir][LLVM] Use int32_t to indirectly construct GEPArg (#79562)
GEPArg can only be constructed from int32_t and mlir::Value. Explicitly
cast other types (e.g. unsigned, size_t) to int32_t to avoid narrowing
conversion warnings on MSVC. Some recent examples of such are:

```
mlir\lib\Dialect\LLVMIR\Transforms\TypeConsistency.cpp: error C2398:
Element '1': conversion from 'size_t' to 'T' requires a narrowing
conversion
    with
    [
        T=mlir::LLVM::GEPArg
    ]

mlir\lib\Dialect\LLVMIR\Transforms\TypeConsistency.cpp: error C2398:
Element '1': conversion from 'unsigned int' to 'T' requires a narrowing
conversion
    with
    [
        T=mlir::LLVM::GEPArg
    ]
```

Co-authored-by: Nikita Kudriavtsev <nikita.kudriavtsev@intel.com>
(cherry picked from commit 89cd345667a5f8f4c37c621fd8abe8d84e85c050)
2024-01-29 10:29:59 -08:00
..
Analysis [mlir] Fix -Wunused-variable in Barvinok.cpp (NFC) 2024-01-22 20:12:39 +08:00
AsmParser [mlir] Change end of OperationDefinition. (#77273) 2024-01-10 10:41:02 -08:00
Bindings/Python Revert "[mlir][python] Make the Context/Operation capsule creation methods work as documented. (#76010)" 2023-12-21 10:06:44 +00:00
Bytecode [mlir] don't use magic numbers in IRNumbering.cpp 2024-01-04 09:49:34 +00:00
CAPI [mlir] fix Operation::getDiscardableAttrs in absence of properties (#76816) 2024-01-03 16:33:27 +01:00
Conversion [mlir][LLVM] Use int32_t to indirectly construct GEPArg (#79562) 2024-01-29 10:29:59 -08:00
Debug Apply clang-tidy fixes for readability-identifier-naming in CLOptionsSetup.cpp (NFC) 2024-01-15 20:59:12 -08:00
Dialect [mlir][LLVM] Use int32_t to indirectly construct GEPArg (#79562) 2024-01-29 10:29:59 -08:00
ExecutionEngine [mlir] Add mlir_arm_runner_utils library for use in integration tests (#78583) 2024-01-22 09:28:13 +00:00
Interfaces [mlir][Interfaces] DestinationStyleOpInterface: Rename hasTensor/BufferSemantics (#77574) 2024-01-12 10:02:54 +01:00
IR [mlir][IR] Add notifyBlockRemoved callback to listener (#78306) 2024-01-21 10:06:53 +01:00
Parser [mlir] Relax requirement on memory buffer creation. 2023-08-30 15:29:53 -07:00
Pass [mlir] fix IRPrinterInstrumentation to use the user-provided IRPrinting config (#70023) 2024-01-14 15:58:32 -08:00
Query [mlir] Use StringRef::ltrim (NFC) 2024-01-08 21:49:32 -08:00
Reducer [ADT] Rename llvm::erase_value to llvm::erase (NFC) (#70156) 2023-10-24 23:03:13 -07:00
Rewrite [mlir] Add config for PDL (#69927) 2024-01-03 20:37:20 -08:00
Support [mlir] Use StringRef::{starts,ends}_with (NFC) 2023-12-13 22:58:30 -08:00
TableGen [mlir] Use StringRef::ltrim (NFC) 2024-01-08 21:49:32 -08:00
Target [mlir][Target] Teach dense_resource conversion to LLVMIR Target (#78958) 2024-01-23 13:30:34 -08:00
Tools [mlir] Use StringRef::ltrim (NFC) 2024-01-08 21:49:32 -08:00
Transforms [mlir][IR] Add notifyBlockRemoved callback to listener (#78306) 2024-01-21 10:06:53 +01:00
CMakeLists.txt [mlir][mlir-query] Introduce mlir-query tool with autocomplete support 2023-10-13 14:03:27 -07:00