aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-09-03 07:48:28 -0700
committerGitHub <noreply@github.com>2025-09-03 07:48:28 -0700
commit07e30043117c87f30a4505f2858a27ed0e2ea012 (patch)
tree99b01d2e5a606db36ef7f93fef92be27a8e88166 /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parente8755e71c770bf65a26842ed68262336d2508dfc (diff)
downloadllvm-07e30043117c87f30a4505f2858a27ed0e2ea012.zip
llvm-07e30043117c87f30a4505f2858a27ed0e2ea012.tar.gz
llvm-07e30043117c87f30a4505f2858a27ed0e2ea012.tar.bz2
[Support] Modernize YAML traits with is_detected (NFC) (#156598)
This patch modernizes has_* YAML traits with is_detected. The resulting code should be a lot more readable because all the SFINAE logic is hidden behind is_detected. One note about has_FlowTraits. The original code uses a complex trick to detect a member variable named "flow", intentionally triggering ambiguity with "flow" in the two base classes. I've simplified the check down to: template <class U> using check = decltype(&U::flow); without using SameType. The use of SameType here would make the trait unnecessarily complicated. While I am at it, this patch switches to "static constexpr bool".
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions