Displaying 7 results from an estimated 7 matches for "fileentry".
Did you mean:
file_entry
2009 Feb 04
12
Detecting a programm runs using Wine
Is there absolutelu no (unofficial) way to detect whether a programm is running using Wine?
In this way a programm could decide to use other routines for those features that do not work fine using Wine.
2014 Jul 22
2
[LLVMdev] How to get the symbols from a .so file?
Hello all,
I develop a project based on Clang where I need to read all symbols from a library. For symbols libraries (.a/.lib) I use the following code:
auto &FM = C->getFileManager();
...
auto Buffer = FM.getBufferForFile(FileEntry);
...
auto Object = llvm::object::ObjectFile::createObjectFile(Buffer);
This code crashes at the last line if the file in question is a shared object (.so). Apparently I need to use different code to parse a shared object but I have little idea what. Any help will be appreciated.
...
2017 Mar 16
4
Sharing MemoryBuffers between front ends and LLVM
...rwise it would reuse the registered MemoryBuffer.
I see a few downsides of this approach, though.
It overlaps a bit with the existing SourceManager in clang which already does some caching work through the clang::ContentCache class. At first the cache seems hard to abstract away as it uses clang::FileEntry and looks pretty tailored for clang needs.
Also, assuming that the front end is using a MemoryBuffer may be a too strong requirement, in particular for FE's that are mostly unaware of LLVM except for a final LLVM codegen pass. This would mean that the files would be reopened even if they are a...
2009 Feb 05
1
[LLVMdev] Installations problems CLANG
...eInfo::clear()':
SourceManager.cpp:124: error: 'class llvm::StringMap<unsigned int,
llvm::BumpPtrAllocator>' has no member named 'clear'
SourceManager.cpp: In member function 'const clang::SrcMgr::ContentCache*
clang::SourceManager::getOrCreateContentCache(const clang::FileEntry*)':
SourceManager.cpp:367: error: no matching function for call to
'llvm::BumpPtrAllocator::Allocate(int, unsigned int&)'
SourceManager.cpp: In member function 'const clang::SrcMgr::ContentCache*
clang::SourceManager::createMemBufferContentCache(const
llvm::MemoryBuffer*)':...
2011 Jul 23
2
[LLVMdev] Build of latest llvm gives warning and error
...ing/VersionControl/llvm/tools/clang/unittests/Basic/FileManagerTest.cpp:185:3:
warning: passing NULL to non-pointer argument 3 of 'static
testing::AssertionResult
testing::internal::EqHelper<true>::Compare(const char*, const char*,
const T1&, T2*) [with T1 = int, T2 = const clang::FileEntry]'
C:/Programming/VersionControl/llvm/tools/clang/unittests/Basic/FileManagerTest.cpp:185:3:
warning: passing NULL to non-pointer argument 3 of 'static
testing::AssertionResult
testing::internal::EqHelper<true>::Compare(const char*, const char*,
const T1&, T2*) [with T1 = int,...
2017 Mar 17
2
Sharing MemoryBuffers between front ends and LLVM
...d MemoryBuffer.
>>
>> I see a few downsides of this approach, though.
>>
>> It overlaps a bit with the existing SourceManager in clang which already does some caching work through the clang::ContentCache class. At first the cache seems hard to abstract away as it uses clang::FileEntry and looks pretty tailored for clang needs.
>>
>> Also, assuming that the front end is using a MemoryBuffer may be a too strong requirement, in particular for FE's that are mostly unaware of LLVM except for a final LLVM codegen pass. This would mean that the files would be reopened e...
2014 Jun 10
6
[LLVMdev] Suggestions for optimizations
Hello!
I was trying to optimize our automatically generated backend for Open
RISC and for this purpose I went through the
gcc torture testsuite.
There are many programs that are better optimized by LLVM, but some are
much better optimized by gcc 4.9.
The main limitations were is loop unrolling and structures handling.
Differences can be best seen e.g. when compiling for an