MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / isRestrictedToRegularMalloc

Function isRestrictedToRegularMalloc

src/compiler/stdpar/MallocToUSM.cpp:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73bool isRestrictedToRegularMalloc(llvm::Function* F) {
74 llvm::StringRef Name = F->getName();
75 if(!llvmutils::starts_with(Name, "_Z"))
76 return false;
77
78 if(NameStartsWithItaniumIdentifier(Name, "hipsycl"))
79 return true;
80
81 return false;
82}
83
84bool isStdFunction(llvm::Function* F) {
85 llvm::StringRef Name = F->getName();

Callers 1

runMethod · 0.85

Calls 2

starts_withFunction · 0.85

Tested by

no test coverage detected