summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/AutoUpgrade.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-12-09 18:02:40 +0000
committerCraig Topper <craig.topper@intel.com>2018-12-09 18:02:40 +0000
commit7ca55323ce582b19767fbf3a207372c43f728ffc (patch)
tree0b0645cb67b7652ddcc0e94028f062e31ccdd5aa /llvm/lib/IR/AutoUpgrade.cpp
parent2b09d17d93d8a3cdc98747a4d2d4d6be5840087f (diff)
downloadbcm5719-llvm-7ca55323ce582b19767fbf3a207372c43f728ffc.tar.gz
bcm5719-llvm-7ca55323ce582b19767fbf3a207372c43f728ffc.zip
[X86] Add some comments about when some X86 intrinsic autoupgrade code was added.
Someday we'd like to remove old autoupgrade code so it helps to annotate how long its been there so we don't have to go digging through commit history. llvm-svn: 348728
Diffstat (limited to 'llvm/lib/IR/AutoUpgrade.cpp')
-rw-r--r--llvm/lib/IR/AutoUpgrade.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp
index 10cb1ac698d..83fc4787cf9 100644
--- a/llvm/lib/IR/AutoUpgrade.cpp
+++ b/llvm/lib/IR/AutoUpgrade.cpp
@@ -382,20 +382,20 @@ static bool UpgradeX86IntrinsicFunction(Function *F, StringRef Name,
return true;
}
- if (Name == "addcarryx.u32")
+ if (Name == "addcarryx.u32") // Added in 8.0
return UpgradeADCSBBIntrinsic(F, Intrinsic::x86_addcarryx_u32, NewFn);
- if (Name == "addcarryx.u64")
+ if (Name == "addcarryx.u64") // Added in 8.0
return UpgradeADCSBBIntrinsic(F, Intrinsic::x86_addcarryx_u64, NewFn);
- if (Name == "addcarry.u32")
+ if (Name == "addcarry.u32") // Added in 8.0
return UpgradeADCSBBIntrinsic(F, Intrinsic::x86_addcarry_u32, NewFn);
- if (Name == "addcarry.u64")
+ if (Name == "addcarry.u64") // Added in 8.0
return UpgradeADCSBBIntrinsic(F, Intrinsic::x86_addcarry_u64, NewFn);
- if (Name == "subborrow.u32")
+ if (Name == "subborrow.u32") // Added in 8.0
return UpgradeADCSBBIntrinsic(F, Intrinsic::x86_subborrow_u32, NewFn);
- if (Name == "subborrow.u64")
+ if (Name == "subborrow.u64") // Added in 8.0
return UpgradeADCSBBIntrinsic(F, Intrinsic::x86_subborrow_u64, NewFn);
- if (Name == "rdtscp") {
+ if (Name == "rdtscp") { // Added in 8.0
// If this intrinsic has 0 operands, it's the new version.
if (F->getFunctionType()->getNumParams() == 0)
return false;
OpenPOWER on IntegriCloud