Skip to content

Commit 590eec5

Browse files
ZuseZ4wsmoses
andauthored
add __vmi_class_type_info (rust-lang#718)
Co-Authored-By: William S. Moses <[email protected]>
1 parent 5d5ee10 commit 590eec5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

enzyme/Enzyme/ActivityAnalysis.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ const std::set<std::string> InactiveGlobals = {
159159
"_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE",
160160
// vtable for __cxxabiv1::__si_class_type_info
161161
"_ZTVN10__cxxabiv120__si_class_type_infoE",
162-
"_ZTVN10__cxxabiv117__class_type_infoE"};
162+
"_ZTVN10__cxxabiv117__class_type_infoE",
163+
"_ZTVN10__cxxabiv121__vmi_class_type_infoE"};
163164

164165
const std::map<std::string, size_t> MPIInactiveCommAllocators = {
165166
{"MPI_Graph_create", 5},

enzyme/Enzyme/GradientUtils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3566,7 +3566,8 @@ Constant *GradientUtils::GetOrCreateShadowConstant(
35663566
}
35673567
} else if (auto arg = dyn_cast<GlobalVariable>(oval)) {
35683568
if (arg->getName() == "_ZTVN10__cxxabiv120__si_class_type_infoE" ||
3569-
arg->getName() == "_ZTVN10__cxxabiv117__class_type_infoE")
3569+
arg->getName() == "_ZTVN10__cxxabiv117__class_type_infoE" ||
3570+
arg->getName() == "_ZTVN10__cxxabiv121__vmi_class_type_infoE")
35703571
return arg;
35713572

35723573
if (hasMetadata(arg, "enzyme_shadow")) {

0 commit comments

Comments
 (0)