Skip to content

Commit

Permalink
more c++
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Aug 12, 2024
1 parent a1d04d1 commit b2851b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions enzyme/Enzyme/EnzymeLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6239,6 +6239,7 @@ llvm::Function *EnzymeLogic::CreateNoFree(RequestContext context, Function *F) {

// clang-format off
StringSet<> NoFreeDemangles = {
"std::__u::basic_streambuf<char, std::__u::char_traits<char>>::basic_streambuf()",
"std::__u::basic_string<char, std::__u::char_traits<char>, std::__u::allocator<char>>::~basic_string()",
"std::__u::basic_stringstream<char, std::__u::char_traits<char>, std::__u::allocator<char>>::~basic_stringstream()",
"std::__u::basic_streambuf<char, std::__u::char_traits<char>>::~basic_streambuf()",
Expand Down Expand Up @@ -6395,6 +6396,11 @@ llvm::Function *EnzymeLogic::CreateNoFree(RequestContext context, Function *F) {
"std::__1::basic_ostream<char, std::__1::char_traits<char>>::write(char const*, long)",
};
const char* NoFreeDemanglesStartsWith[] = {
"std::__u::basic_string<char, std::__u::char_traits<char>, std::__u::allocator<char>>::__init",
"std::__u::basic_stringbuf<char, std::__u::char_traits<char>, std::__u::allocator<char>>::str",
"std::__u::basic_istream<char, std::__u::char_traits<char>>::operator>>",
"std::__u::basic_istream<char, std::__u::char_traits<char>>::ignore",
"std::__u::basic_istream<char, std::__u::char_traits<char>>::get",
"std::__u::basic_ostream<char, std::__u::char_traits<char>>::operator<<",
"std::__u::basic_ostream<wchar_t, std::__u::char_traits<wchar_t>>::operator<<",
"std::__u::basic_ostream<wchar_t, std::__u::char_traits<wchar_t>>& std::__u::operator<<",
Expand Down

0 comments on commit b2851b3

Please sign in to comment.