[PATCH] D137832: [AMDGPU][AsmParser] Forbid TFE modifiers for MBUF stores.

Joe Nash via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 06:47:51 PST 2022


Joe_Nash added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp:3282
+    for (const auto &Op : Operands) {
+      if (static_cast<const AMDGPUOperand &>(*Op).isTFE())
+        return Match_InvalidOperand;
----------------
foad wrote:
> Joe_Nash wrote:
> > I would prefer dynamic_cast, for safe downcasting.
> LLVM is generally built with -fno-rtti so I don't think you can use dynamic_cast (can you?).
Good point, I don't know if it's available. LLVM dyn_cast may also be an option.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137832/new/

https://reviews.llvm.org/D137832



More information about the llvm-commits mailing list