search for: emitglobal

Displaying 20 results from an estimated 22 matches for "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
...tion(), 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 tools/clang/lib/CodeGen/CodeGenModule.cpp file. I changed in EmitGlobal function to detect if the function has "used" attribute and then if it has then use "GetOrCreateLLVMFunction" this to create the function declaration. However, this hack fails in some other cases. Therefore I am looking for a proper way to do this. Regards, Soham Sinha PhD Stud...
2018 Jun 26
2
How to force an unused function declaration in clang
...eclare 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 > tools/clang/lib/CodeGen/CodeGenModule.cpp file. I changed in EmitGlobal > function to detect if the function has "used" attribute and then if it has > then use "GetOrCreateLLVMFunction" this to create the function declaration. > However, this hack fails in some other cases. Therefore I am looking for a > proper way to do this. > >...
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 mai...
2018 Jun 26
2
How to force an unused function declaration in clang
...se 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 > >> > tools/clang/lib/CodeGen/CodeGenModule.cpp file. I changed in > EmitGlobal > >> > function to detect if the function has "used" attribute and then if > it has > >> > then use "GetOrCreateLLVMFunction" this to create the function > declaration. > >> > However, this hack fails in some other cases. Therefore I am...
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 0x...
2018 Dec 21
2
[RFC] Allocatable Global Register Variables for ARM
...via module flags. Each declaration in a translation unit such as "register unsigned int foo __asm("r4");", will be mapped by the front-end to a module flag. e.g. --- !{i32 1, !"fixed_reg.foo", !"r4"} --- This is achieved via a modification to CodeGenModule::EmitGlobal. In addition, there are some changes relating to specifying valid global registers (by adding an Arm override for isValidGlobalRegister), Draft Patch: https://reviews.llvm.org/D56003 LLVM Changes ---------------------- In the LLVM backend we can then use the module flags to add any (valid) specif...
2012 Jul 10
2
[LLVMdev] Clang error compiling
...odeGenModule::TryEmitDefinitionAsAlias(clang::GlobalDecl, clang::GlobalDecl) + 175 13 clang 0x000000000078040b clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 123 14 clang 0x000000000074fa73 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 419 15 clang 0x000000000075126a clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1530 16 clang 0x0000000000780312 clang::CodeGen::CodeGenModule::EmitCXXConstructors(clang::CXXConstructorDecl const*) + 98 17 clang 0x000000000...
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, Dox...
2012 Apr 23
4
[LLVMdev] gdb + clang/llvm
...tFunctionBody(clang::CodeGen::FunctionArgList&) + 154 21 clang 0x0000000000c19d11 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 971 22 clang 0x0000000000a9025f clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 847 23 clang 0x0000000000a8d2c3 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 445 24 clang 0x0000000000a8cbd2 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 754 25 clang 0x000000000...
2012 Apr 23
0
[LLVMdev] gdb + clang/llvm
...ody(clang::CodeGen::FunctionArgList&) + 154 > 21 clang 0x0000000000c19d11 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 971 > 22 clang 0x0000000000a9025f clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 847 > 23 clang 0x0000000000a8d2c3 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 445 > 24 clang 0x0000000000a8cbd2 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 754 > 25 clang...
2012 Apr 23
1
[LLVMdev] gdb + clang/llvm
...; + 154 > > 21 clang 0x0000000000c19d11 > > clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, > > llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 971 > > 22 clang 0x0000000000a9025f > > clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) > > + 847 > > 23 clang 0x0000000000a8d2c3 > > clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) > > + 445 > > 24 clang 0x0000000000a8cbd2 > > clang::CodeGen::CodeGenModule::EmitGlob...
2012 Feb 21
5
[LLVMdev] buildbot failure in LLVM on clang-x86_64-debian-fnt
...::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 39 26 clang 0x00000000008f7193 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 995 27 clang 0x00000000007ca16b clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) + 587 28 clang 0x00000000007dbe0e clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 190 29 clang 0x00000000007dc3ed clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1197 30 clang 0x00000000007dc8...
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
...itStmt(clang::Stmt const*) + 39 > 26 clang 0x00000000008f7193 > clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, > llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 995 > 27 clang 0x00000000007ca16b > > clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl) > + 587 > 28 clang 0x00000000007dbe0e > clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) > + 190 > 29 clang 0x00000000007dc3ed > clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1197 >...
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
...at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CodeGenTypes.cpp:88 #21 0x00007ffff4c7bb64 in clang::CodeGen::CodeGenModule::GetAddrOfGlobalVar (this=0xd63cf0, D=0xd6a500, Ty=0x0) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CodeGenModule.cpp:1490 #22 0x00007ffff4b92ae9 in EmitGlobalVarDeclLValue (CGF=..., E=0xd6a558, VD=0xd6a500) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.cpp:1586 #23 0x00007ffff4b8abd7 in clang::CodeGen::CodeGenFunction::EmitDeclRefLValue (this=0x7fffffff9198, E=0xd6a558) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.cpp...
2016 Jan 22
2
Clang 3.8 fails with asan enabled
...on.cpp:752 #5 0x287bac4 in clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) /export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp:972:3 #6 0x28b6480 in clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) /export/users/amitrokh/llvm-sanitizer/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:2739:3 #7 0x28aac97 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) /export/users/amitrokh/llvm-sanitizer/l...
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
...at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CodeGenTypes.cpp:88 #21 0x00007ffff4c7bb64 in clang::CodeGen::CodeGenModule::GetAddrOfGlobalVar (this=0xd63cf0, D=0xd6a500, Ty=0x0) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CodeGenModule.cpp:1490 #22 0x00007ffff4b92ae9 in EmitGlobalVarDeclLValue (CGF=..., E=0xd6a558, VD=0xd6a500) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.cpp:1586 #23 0x00007ffff4b8abd7 in clang::CodeGen::CodeGenFunction::EmitDeclRefLValue (this=0x7fffffff9198, E=0xd6a558) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.cpp...
2019 Jan 04
2
[RFC] Allocatable Global Register Variables for ARM
...via module flags. Each declaration in a translation unit such as "register unsigned int foo __asm("r4");", will be mapped by the front-end to a module flag. e.g. --- !{i32 1, !"fixed_reg.foo", !"r4"} --- This is achieved via a modification to CodeGenModule::EmitGlobal. In addition, there are some changes relating to specifying valid global registers (by adding an Arm override for isValidGlobalRegister), Draft Patch: https://reviews.llvm.org/D56003 Why did you decide to use global metadata here? For AArch64, we use a target feature instead, to implement rough...