search for: emitglobals

Displaying 20 results from an estimated 22 matches for "emitglobals".

Did you mean: emitglobal
2009 Oct 19
3
[LLVMdev] Objective-C code in lli
...ntStringClassReference 0 lli 0x0000000100687556 (anonymous namespace)::SignalHandler(int) + 470 1 libSystem.B.dylib 0x00007fff83ee10aa _sigtramp + 26 2 libSystem.B.dylib 0x0000000100a0b4ba _sigtramp + 2092082218 3 lli 0x00000001001e8374 llvm::ExecutionEngine::emitGlobals() + 6164 4 lli 0x00000001001dbd69 llvm::Interpreter::Interpreter (llvm::ModuleProvider*) + 185 5 lli 0x00000001001dbdd8 llvm::Interpreter::create (llvm::ModuleProvider*, std::string*, bool) + 56 6 lli 0x0000000100010803 main + 243 7 lli...
2018 Jun 26
2
How to force an unused function declaration in clang
clang doesn't seem to respect __attribute__((used)) in C functions. Even if I declare a function like the following: __attribute__((used)) void function(), then also it doesn't declare the function in its IR file if I don't use the function. Is there any other way to force the declaration of "unused" function declarations with clang. I have hacked in clang 6.0.0 in
2018 Jun 26
2
How to force an unused function declaration in clang
For the same reason GCC allowed the attribute. Even if I want to use/inline a function later on in the pipeline. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University On Tue, Jun 26, 2018 at 8:30 AM mayuyu.io <admin at mayuyu.io> wrote: > Out of curiosity, how does an unused declaration affect the emitted object > file > > Zhang > > > 在
2009 Oct 19
0
[LLVMdev] Objective-C code in lli
...lli 0x0000000100687556 (anonymous > namespace)::SignalHandler(int) + 470 > 1 libSystem.B.dylib 0x00007fff83ee10aa _sigtramp + 26 > 2 libSystem.B.dylib 0x0000000100a0b4ba _sigtramp + 2092082218 > 3 lli 0x00000001001e8374 > llvm::ExecutionEngine::emitGlobals() + 6164 > 4 lli 0x00000001001dbd69 > llvm::Interpreter::Interpreter(llvm::ModuleProvider*) + 185 > 5 lli 0x00000001001dbdd8 llvm::Interpreter::create > (llvm::ModuleProvider*, std::string*, bool) + 56 > 6 lli 0x0000000100010803 main...
2018 Jun 26
2
How to force an unused function declaration in clang
It does, when the function has a body. When it doesn't, it ignores <https://godbolt.org/g/2BCvht>. The body might be provided later on in the toolchain via linking a library. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University On Tue, Jun 26, 2018 at 10:25 AM Hans Wennborg <hans at chromium.org> wrote: > It works for me: > >
2009 Oct 19
1
[LLVMdev] Objective-C code in lli
...0x0000000100687556 (anonymous >> namespace)::SignalHandler(int) + 470 >> 1 libSystem.B.dylib 0x00007fff83ee10aa _sigtramp + 26 >> 2 libSystem.B.dylib 0x0000000100a0b4ba _sigtramp + 2092082218 >> 3 lli 0x00000001001e8374 >> llvm::ExecutionEngine::emitGlobals() + 6164 >> 4 lli 0x00000001001dbd69 >> llvm::Interpreter::Interpreter(llvm::ModuleProvider*) + 185 >> 5 lli 0x00000001001dbdd8 llvm::Interpreter::create >> (llvm::ModuleProvider*, std::string*, bool) + 56 >> 6 lli 0x0...
2018 Dec 21
2
[RFC] Allocatable Global Register Variables for ARM
Hi all, This is a RFC on support for Global Register Variables in the Arm backend. Whilst there has been some prior discussion about whether or not LLVM should (or even needs to) support global register variables, today there seems to be a good measure of support for this in both Clang+LLVM (although it is currently limited to SP). When most of this support landed there was some concern
2012 Jul 10
2
[LLVMdev] Clang error compiling
llvm[1]: Compiling APFloat.cpp for Release+Asserts build clang: TargetInfo.cpp:1778: llvm::Type *GetX86_64ByValArgumentPair(llvm::Type *, llvm::Type *, const llvm::TargetData &): Assertion `Lo->isIntegerTy() && "Invalid/unknown lo type"' failed. 0 clang 0x0000000001c132ef 1 clang 0x0000000001c13804 2 libpthread.so.0 0x00002ba7d7eaec60 3
2012 Jun 03
0
[LLVMdev] [question] IR<-->native program state mode switch how / where is it done
...reter to the JIT and vice versa? all i can tell currently is that it happens in ExecutionEngine somewhere using these methods, but i cant find their wrapper, the one that would use these and say "now map everything and switch state" and somehow pass that mapping to the JIT and backwards. emitGlobals(), EmitGlobalVariable(), llvm::JIT::getOrEmitGlobalVariable() llvm::ExecutionEngineState::getGlobalAddressMap(), llvm::ExecutionEngineState::getGlobalAddressReverseMap() I hope I'm not misguided by an incorrect understanding of the JIT architecture, in any case any links to documentation, Doxy...
2012 Apr 23
4
[LLVMdev] gdb + clang/llvm
> > ok, I now have a problem in the code generator. > > Let's say I want to set a breakpoint somewhere in > > clang/lib/CodeGen/CGExprScalar.cpp > > > > What do I have to do in order to trigger breakpoints, see > > backtraces and so on? > > You set a breakpoint and ask to see a backtrace? > > -eric haha, OK, I think I should be more specific.
2012 Apr 23
0
[LLVMdev] gdb + clang/llvm
On Apr 23, 2012, at 2:14 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote: >>> ok, I now have a problem in the code generator. >>> Let's say I want to set a breakpoint somewhere in >>> clang/lib/CodeGen/CGExprScalar.cpp >>> >>> What do I have to do in order to trigger breakpoints, see >>> backtraces and so on? >>
2012 Apr 23
1
[LLVMdev] gdb + clang/llvm
Hi Jim, thanks for replying. As mentioned in my earlier mail, I have to specify -emit-obj along with -cc1 in order to trigger codegen. This solves the problem for me. As I learned from the last email, specifying -v is a good starting point in order to see what actually is happening and tackle such problems. -- Roland ----- Original Message ----- > From: "Jim Grosbach"
2012 Feb 21
5
[LLVMdev] buildbot failure in LLVM on clang-x86_64-debian-fnt
All, This buildbot is getting lots of assertion failures in the test suite. They were probably caused by my commit: ------------------------------------------------------------------------ r151049 | foad | 2012-02-21 09:25:52 +0000 (Tue, 21 Feb 2012) | 6 lines Changed paths: M /llvm/trunk/lib/VMCore/LLVMContextImpl.h M /llvm/trunk/lib/VMCore/Type.cpp PR1210: make uniquing of struct and
2012 Apr 23
0
[LLVMdev] gdb + clang/llvm
On Apr 20, 2012, at 6:35 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote: > ok, I now have a problem in the code generator. > Let's say I want to set a breakpoint somewhere in > clang/lib/CodeGen/CGExprScalar.cpp > > What do I have to do in order to trigger breakpoints, see backtraces and so on? You set a breakpoint and ask to see a backtrace? -eric
2012 Apr 21
2
[LLVMdev] gdb + clang/llvm
ok, I now have a problem in the code generator. Let's say I want to set a breakpoint somewhere in clang/lib/CodeGen/CGExprScalar.cpp What do I have to do in order to trigger breakpoints, see backtraces and so on? -- Roland ----- Original Message ----- > From: "Eric Christopher" <echristo at apple.com> > To: "Roland Leißa" <leissa at cs.uni-saarland.de>
2012 Feb 21
0
[LLVMdev] buildbot failure in LLVM on clang-x86_64-debian-fnt
On Tue, Feb 21, 2012 at 2:51 AM, Jay Foad <jay.foad at gmail.com> wrote: > All, > > This buildbot is getting lots of assertion failures in the test suite. > They were probably caused by my commit: > > ------------------------------------------------------------------------ > r151049 | foad | 2012-02-21 09:25:52 +0000 (Tue, 21 Feb 2012) | 6 lines > Changed paths: >
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
So, when performing expression evaluation, lldb trips over an assert in clang/lib/AST/RecordLayoutBuilder because ExternalFieldOffsets doesn't contain a FieldDecl that updateExternalFieldOffset expected. I found that the assert occurs when both static and non-static member variables are present. For instance, with the following, the lldb command 'expr my_test.length()' does not
2016 Jan 22
2
Clang 3.8 fails with asan enabled
Kostya, all, I'm trying to build my project by clang 3.8rc1 with enabled asan (clang itself is address sanitized) and it fails on several files from my project (ISPC, https://github.com/ispc/ispc). I've reproduced this on MacOS and Linux. Please let me know if you need any other info. How to reproduce: 1) Build address sanitized clang 3.8rc1: cd /path-to-working-dir svn co
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
FYI, this turned out to be an error of omission in LLDB in SymbolFileDWARF, because the case of a non-defining external (i.e. a static member variable) wasn't being handled with a variable lookup to dig up the location. I'll put a patch together for lldb-commits, - Ashok From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Thirumurthi, Ashok
2019 Jan 04
2
[RFC] Allocatable Global Register Variables for ARM
Thank you for your reply Eli, I too was working with Carey on this feature, so please let me reply. On 12/21/18 8:05 PM, Friedman, Eli via llvm-dev wrote: > As a side-note, you might want to check that prologue/epilogue emission won't emit a PUSH/POP that refers to a register reserved this way; we sometimes add an "extra" register to align the stack. Yes, you are right.