search for: manglednam

Displaying 20 results from an estimated 21 matches for "manglednam".

Did you mean: mangledname
2017 Jul 27
2
llvm 5.0 release rc1 : ExecutionEngine fatal error on MCJIT::getFunctionAddress
Hi everyone, In llvm 4.0 the MCJIT::getFunctionAddress function return 0 (a null address) when the symbol is not found : *uint64_t MCJIT::getSymbolAddress(const std::string &Name, bool CheckFunctionsOnly) { std::string MangledName; { raw_string_ostream MangledNameStream(MangledName); Mangler::getNameWithPrefix(MangledNameStream, Name, getDataLayout()); } return findSymbol(MangledName, CheckFunctionsOnly).getAddress();}* Now with the current implementation (llvm 5.0 rc1 tag) : *uint64_t MCJIT::getSymb...
2016 Jul 28
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...clude <vector> +#include "llvm/IR/Mangler.h" +#include "llvm/Support/raw_ostream.h" namespace llvm { namespace orc { @@ -77,6 +79,24 @@ public: return LMH->Resources; } + static std::string mangle(StringRef Name, const DataLayout &DL) { + std::string MangledName; + { + raw_string_ostream MangledNameStream(MangledName); + Mangler::getNameWithPrefix(MangledNameStream, Name, DL); + } + return MangledName; + } + + LogicalModuleResources* getLogicalModuleResourcesForSymbol(const std::string &Name, bool ExportedSymbolsOnly) { + for (...
2014 Feb 21
12
[LLVMdev] asan coverage
...Index: lib/CodeGen/CodeGenPGO.cpp =================================================================== --- lib/CodeGen/CodeGenPGO.cpp (revision 201843) +++ lib/CodeGen/CodeGenPGO.cpp (working copy) @@ -199,7 +199,8 @@ llvm::Type *Args[] = { Int8PtrTy, // const char *MangledName Int32Ty, // uint32_t NumCounters - Int64PtrTy // uint64_t *Counters + Int64PtrTy, // uint64_t *Counters + Int64PtrTy // uint64_t *PCs }; llvm::FunctionType *FTy = llvm::FunctionType::...
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...gler.h" > +#include "llvm/Support/raw_ostream.h" > > namespace llvm { > namespace orc { > @@ -77,6 +79,24 @@ public: > return LMH->Resources; > } > > + static std::string mangle(StringRef Name, const DataLayout &DL) { > + std::string MangledName; > + { > + raw_string_ostream MangledNameStream(MangledName); > + Mangler::getNameWithPrefix(MangledNameStream, Name, DL); > + } > + return MangledName; > + } > + > + LogicalModuleResources* getLogicalModuleResourcesForSymbol(const > std::string &amp...
2016 Jul 29
2
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...vm/Support/raw_ostream.h" >> >> namespace llvm { >> namespace orc { >> @@ -77,6 +79,24 @@ public: >> return LMH->Resources; >> } >> >> + static std::string mangle(StringRef Name, const DataLayout &DL) { >> + std::string MangledName; >> + { >> + raw_string_ostream MangledNameStream(MangledName); >> + Mangler::getNameWithPrefix(MangledNameStream, Name, DL); >> + } >> + return MangledName; >> + } >> + >> + LogicalModuleResources* getLogicalModuleResourcesForSy...
2016 Jul 29
0
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...gt;> >>> namespace llvm { >>> namespace orc { >>> @@ -77,6 +79,24 @@ public: >>> return LMH->Resources; >>> } >>> >>> + static std::string mangle(StringRef Name, const DataLayout &DL) { >>> + std::string MangledName; >>> + { >>> + raw_string_ostream MangledNameStream(MangledName); >>> + Mangler::getNameWithPrefix(MangledNameStream, Name, DL); >>> + } >>> + return MangledName; >>> + } >>> + >>> + LogicalModuleResources...
2014 Feb 19
2
[LLVMdev] asan coverage
I've built chromium with " -fprofile-instr-generate -fsanitize=address" -- the performance looks good! The file format from r198638 is indeed rudimentary. Do you already know how the real output format will look like? Just to summarize what I think is important: - minimal size on disk, minimal amount of files - minimal i/o while writing to disk, no lockf or some such -
2016 Jul 30
1
[ORC JIT] Exposing IndirectStubsManager from CompileOnDemandLayer.h
...ace llvm { >>>> namespace orc { >>>> @@ -77,6 +79,24 @@ public: >>>> return LMH->Resources; >>>> } >>>> >>>> + static std::string mangle(StringRef Name, const DataLayout &DL) { >>>> + std::string MangledName; >>>> + { >>>> + raw_string_ostream MangledNameStream(MangledName); >>>> + Mangler::getNameWithPrefix(MangledNameStream, Name, DL); >>>> + } >>>> + return MangledName; >>>> + } >>>> + >>&g...
2020 Jun 24
2
Function name demangling in llvm ir
...the IR actually carries, rather than implying extra semantics based on the demangled name) On Wed, Jun 24, 2020 at 12:48 PM Johannes Doerfert via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I have not tried it but maybe > > `std::string llvm::demangle(const std::string &MangledName)` > > in `llvm/Demangle/Demangle.h` > > is already what you want. > > > > On 6/24/20 2:10 PM, sangeeta chowdhary via llvm-dev wrote: > > Hello, > > I am doing some program analysis with C++ programs. I need to check if some > particular function is called in...
2015 Mar 13
4
[LLVMdev] Thoughts about ExecutionEngine/MCJIT interface
Hi, I think ExecutionEngine as a common interface for both Interpreter and MCJIT is almost useless in the current form. There are separated methods in ExecutionEngine for similar or the same features provided by Interpreter and MCJIT, i.e. to get a pointer to function you should call getPointerToFunction() for Interpreter or getFunctionAddress() for MCJIT. Personally, I'm using MCJIT and
2020 Jun 24
2
Function name demangling in llvm ir
Hello, I am doing some program analysis with C++ programs. I need to check if some particular function is called in the program, for that I need the name of the function being called in the call instruction. Since C++ mangles the name of the function, I need a way to demangle the function name in llvm IR. Is there any way to achieve that in llvm pass? Regards, Sangeeta -------------- next part
2017 Aug 06
2
Compile issues with LLVM ORC JIT
...(SymAddr,JITSymbolFlags::Exported);returnJITSymbol(nullptr);});// Add the set to the JIT with the resolver we created above and a newly// created SectionMemoryManager.returncantFail(CompileLayer.addModule(std::move(M),std::move(Resolver)));}JITSymbolfindSymbol(conststd::string Name){std::string MangledName;raw_string_ostream MangledNameStream(MangledName);Mangler::getNameWithPrefix(MangledNameStream,Name,DL);returnCompileLayer.findSymbol(MangledNameStream.str(),true);}voidremoveModule(ModuleHandleH){cantFail(CompileLayer.removeModule(H));}};}}| The code is 1-to-1 copied from LLVM web site,LLVM ORC...
2017 Apr 09
2
Possible stack corruption during call to JITSymbol::getAddress()
...bove and a newly // created SectionMemoryManager. return CompileLayer.addModuleSet(std::move(Ms), make_unique<SectionMemoryManager>(), std::move(Resolver)); } JITSymbol findSymbol(const std::string Name) { std::string MangledName; raw_string_ostream MangledNameStream(MangledName); Mangler::getNameWithPrefix(MangledNameStream, Name, DL); return CompileLayer.findSymbol(MangledNameStream.str(), true); } void removeModule(ModuleHandle H) { CompileLayer.removeModuleSet(H); } }; cons...
2017 Apr 17
2
Possible stack corruption during call to JITSymbol::getAddress()
...::move(Ms), >> make_unique<SectionMemoryMana >> ger>(), >> std::move(Resolver)); >> } >> >> JITSymbol findSymbol(const std::string Name) { >> std::string MangledName; >> raw_string_ostream MangledNameStream(MangledName); >> Mangler::getNameWithPrefix(MangledNameStream, Name, DL); >> return CompileLayer.findSymbol(MangledNameStream.str(), true); >> } >> >> void removeModule(ModuleHandle H) { &g...
2017 Apr 20
2
Possible stack corruption during call to JITSymbol::getAddress()
...make_unique<SectionMemoryMana >>>> ger>(), >>>> std::move(Resolver)); >>>> } >>>> >>>> JITSymbol findSymbol(const std::string Name) { >>>> std::string MangledName; >>>> raw_string_ostream MangledNameStream(MangledName); >>>> Mangler::getNameWithPrefix(MangledNameStream, Name, DL); >>>> return CompileLayer.findSymbol(MangledNameStream.str(), true); >>>> } >>>> >>&gt...
2017 May 01
1
Possible stack corruption during call to JITSymbol::getAddress()
...gt;>>>>> ger>(), >>>>>> std::move(Resolver)); >>>>>> } >>>>>> >>>>>> JITSymbol findSymbol(const std::string Name) { >>>>>> std::string MangledName; >>>>>> raw_string_ostream MangledNameStream(MangledName); >>>>>> Mangler::getNameWithPrefix(MangledNameStream, Name, DL); >>>>>> return CompileLayer.findSymbol(MangledNameStream.str(), >>>>>> true); &g...
2017 May 07
2
[cfe-dev] JIT doens't resolve address - Resolve obj-Addresses?
...onMemoryManager. > return CompileLayer.addModuleSet(std::move(Ms), > make_unique<SectionMemoryManager>(), > std::move(Resolver)); > } > > JITSymbol findSymbol(const std::string Name) { > std::string MangledName; > raw_string_ostream MangledNameStream(MangledName); > Mangler::getNameWithPrefix(MangledNameStream, Name, DL); > printf("Tzearch for: %s\n\n", MangledNameStream.str()); > return CompileLayer.findSymbol(MangledNameStream.str(), false); > } > > void removeMod...
2019 Jul 14
2
Build error due to Waf task dependency cycle in run_after
Dear all, trying to build some Heimdal-based packages for Samba AD DC under openSUSE I am facing some difficulties with the build system: During the installation which is triggered by "make install" waf complains about some task dependency cycle after leaving folder bin/default. Full log including config options can be seen unter https://build.opensuse.org/
2019 Aug 01
0
Build error due to Waf task dependency cycle in run_after
...logging.xml,loglevel.xml,lognttokencommand.xml,logondrive.xml,logonhome.xml,logonpath.xml,logonscript.xml,logwriteablefilesonexit.xml,lppausecommand.xml,lpqcachetime.xml,lpqcommand.xml,lpresumecommand.xml,lprmcommand.xml,lsaovernetlogon.xml,machinepasswordtimeout.xml,magicoutput.xml,magicscript.xml,manglednames.xml,mangleprefix.xml,manglingchar.xml,manglingmethod.xml,mapaclinherit.xml,maparchive.xml,maphidden.xml,mapreadonly.xml,mapsystem.xml,maptoguest.xml,maxconnections.xml,maxdisksize.xml,maxlogsize.xml,maxmux.xml,maxopenfiles.xml,maxprintjobs.xml,maxreportedprintjobs.xml,maxsmbdprocesses.xml,maxstat...
2019 Mar 20
2
build problem with 4.10.0
...logging.xml,loglevel.xml,lognttokencommand.xml,logondrive.xml,logonhome.xml,logonpath.xml,logonscript.xml,logwriteablefilesonexit.xml,lppausecommand.xml,lpqcachetime.xml,lpqcommand.xml,lpresumecommand.xml,lprmcommand.xml,lsaovernetlogon.xml,machinepasswordtimeout.xml,magicoutput.xml,magicscript.xml,manglednames.xml,mangleprefix.xml,manglingchar.xml,manglingmethod.xml,mapaclinherit.xml,maparchive.xml,maphidden.xml,mapreadonly.xml,mapsystem.xml,maptoguest.xml,maxconnections.xml,maxdisksize.xml,maxlogsize.xml,maxmux.xml,maxopenfiles.xml,maxprintjobs.xml,maxreportedprintjobs.xml,maxsmbdprocesses.xml,maxstat...