diff options
| author | Koakuma <koachan@protonmail.com> | 2024-07-08 19:19:54 +0700 |
|---|---|---|
| committer | Koakuma <koachan@protonmail.com> | 2024-07-08 19:19:54 +0700 |
| commit | 5c4fdc2fd5898ebd9e89999a4f4b8aa289ca637f (patch) | |
| tree | f3b92a07f3dfc6e70f36d1000605f36a3c15af46 /mlir/lib/Target/Cpp/TranslateToCpp.cpp | |
| parent | dbda8e2f2cd8764e0badd983915d62a2c3377f4d (diff) | |
| parent | e9b8cd0c806db00f0981fb36717077c941426302 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/koachan/spr/main.sparcias-enable-parseforallfeatures-in-matchoperandparserimpl
Created using spr 1.3.5
[skip ci]
Diffstat (limited to 'mlir/lib/Target/Cpp/TranslateToCpp.cpp')
| -rw-r--r-- | mlir/lib/Target/Cpp/TranslateToCpp.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mlir/lib/Target/Cpp/TranslateToCpp.cpp b/mlir/lib/Target/Cpp/TranslateToCpp.cpp index 202df89025f2..626638282efe 100644 --- a/mlir/lib/Target/Cpp/TranslateToCpp.cpp +++ b/mlir/lib/Target/Cpp/TranslateToCpp.cpp @@ -1574,6 +1574,12 @@ LogicalResult CppEmitter::emitType(Location loc, Type type) { } if (auto iType = dyn_cast<IndexType>(type)) return (os << "size_t"), success(); + if (auto sType = dyn_cast<emitc::SizeTType>(type)) + return (os << "size_t"), success(); + if (auto sType = dyn_cast<emitc::SignedSizeTType>(type)) + return (os << "ssize_t"), success(); + if (auto pType = dyn_cast<emitc::PtrDiffTType>(type)) + return (os << "ptrdiff_t"), success(); if (auto tType = dyn_cast<TensorType>(type)) { if (!tType.hasRank()) return emitError(loc, "cannot emit unranked tensor type"); |
