[PATCH] D158341: [llvm][NFC] AutoUpgrade case 'd'
Nathan Sidwell via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 20 09:10:12 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG326280d9658f: [llvm][NFC] Refactor AutoUpgrade dbg case (authored by urnathan).
Changed prior to commit:
https://reviews.llvm.org/D158341?vs=551774&id=551849#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158341/new/
https://reviews.llvm.org/D158341
Files:
llvm/lib/IR/AutoUpgrade.cpp
Index: llvm/lib/IR/AutoUpgrade.cpp
===================================================================
--- llvm/lib/IR/AutoUpgrade.cpp
+++ llvm/lib/IR/AutoUpgrade.cpp
@@ -930,19 +930,16 @@
}
break;
}
- case 'd': {
- if (Name == "dbg.addr") {
- rename(F);
- NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::dbg_value);
- return true;
- }
- if (Name == "dbg.value" && F->arg_size() == 4) {
- rename(F);
- NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::dbg_value);
- return true;
+ case 'd':
+ if (Name.consume_front("dbg.")) {
+ if (Name == "addr" || (Name == "value" && F->arg_size() == 4)) {
+ rename(F);
+ NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::dbg_value);
+ return true;
+ }
+ break; // No other 'dbg.*'.
}
break;
- }
case 'e':
if (Name.consume_front("experimental.vector.")) {
Intrinsic::ID ID = StringSwitch<Intrinsic::ID>(Name)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158341.551849.patch
Type: text/x-patch
Size: 1000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230820/40ade18a/attachment.bin>
More information about the llvm-commits
mailing list