search for: codegenfunction

Displaying 20 results from an estimated 114 matches for "codegenfunction".

2020 Aug 10
2
Orc JIT v2 breaks OpenMP in 11.x branch?
...er.h:2338 > #7 0x00007fb71171f2d5 in llvm::IRBuilderBase::CreateCall > (this=0x7fffd4fdaac8, Callee=..., Args=..., OpBundles=..., Name=..., > FPMathTag=0x0) at > /u/geoff/llvmrepo/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2356 > #8 0x00007fb7117124eb in > clang::CodeGen::CodeGenFunction::EmitRuntimeCall (this=0x7fffd4fda9d0, > callee=..., args=..., > name=...) at > /u/geoff/llvmrepo/llvm-project/clang/lib/CodeGen/CGCall.cpp:4051 > #9 0x00007fb7118b601f in > clang::CodeGen::CGOpenMPRuntime::emitForStaticFinish (this=0x4614460, > CGF=..., Loc=..., > DKi...
2020 Aug 03
2
Orc JIT v2 breaks OpenMP in 11.x branch?
Greetings, Lang and other JITters, Last week I moved our Orc v2-based app from top-of-tree to the new 11.x branch, and it no longer handles C++ code containing OpenMP directives correctly. More specifically, if I JIT compile a function containing OpenMP parallel/for pragmas, using a release version of LLVM, the code compiles and seems to work, but if I try to write the module's bitcode to
2020 Aug 10
2
[EXTERNAL] Re: Orc JIT v2 breaks OpenMP in 11.x branch?
...x00007fb71171f2d5 in llvm::IRBuilderBase::CreateCall >> (this=0x7fffd4fdaac8, Callee=..., Args=..., OpBundles=..., Name=..., >> FPMathTag=0x0) at >> /u/geoff/llvmrepo/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2356 >> #8 0x00007fb7117124eb in >> clang::CodeGen::CodeGenFunction::EmitRuntimeCall (this=0x7fffd4fda9d0, >> callee=..., args=..., >> name=...) at >> /u/geoff/llvmrepo/llvm-project/clang/lib/CodeGen/CGCall.cpp:4051 >> #9 0x00007fb7118b601f in >> clang::CodeGen::CGOpenMPRuntime::emitForStaticFinish (this=0x4614460, >> CGF=.....
2020 Aug 10
2
[EXTERNAL] Re: Orc JIT v2 breaks OpenMP in 11.x branch?
...teCall > >>> (this=0x7fffd4fdaac8, Callee=..., Args=..., OpBundles=..., Name=..., > >>> FPMathTag=0x0) at > >>> /u/geoff/llvmrepo/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2356 > >>> #8 0x00007fb7117124eb in > >>> clang::CodeGen::CodeGenFunction::EmitRuntimeCall (this=0x7fffd4fda9d0, > >>> callee=..., args=..., > >>> name=...) at > >>> /u/geoff/llvmrepo/llvm-project/clang/lib/CodeGen/CGCall.cpp:4051 > >>> #9 0x00007fb7118b601f in > >>> clang::CodeGen::CGOpenMPRuntime::emitFo...
2020 Aug 10
2
[EXTERNAL] Re: Orc JIT v2 breaks OpenMP in 11.x branch?
...7fffd4fdaac8, Callee=..., Args=..., OpBundles=..., Name=..., > >>>>> FPMathTag=0x0) at > >>>>> /u/geoff/llvmrepo/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2356 > >>>>> #8 0x00007fb7117124eb in > >>>>> clang::CodeGen::CodeGenFunction::EmitRuntimeCall (this=0x7fffd4fda9d0, > >>>>> callee=..., args=..., > >>>>> name=...) at > >>>>> /u/geoff/llvmrepo/llvm-project/clang/lib/CodeGen/CGCall.cpp:4051 > >>>>> #9 0x00007fb7118b601f in > >>>>&gt...
2020 Aug 10
2
[EXTERNAL] Re: Orc JIT v2 breaks OpenMP in 11.x branch?
...Callee=..., Args=..., OpBundles=..., Name=..., >>>>>>> FPMathTag=0x0) at >>>>>>> /u/geoff/llvmrepo/llvm-project/llvm/include/llvm/IR/IRBuilder.h:2356 >>>>>>> #8 0x00007fb7117124eb in >>>>>>> clang::CodeGen::CodeGenFunction::EmitRuntimeCall (this=0x7fffd4fda9d0, >>>>>>> callee=..., args=..., >>>>>>> name=...) at >>>>>>> /u/geoff/llvmrepo/llvm-project/clang/lib/CodeGen/CGCall.cpp:4051 >>>>>>> #9 0x00007fb7118b601f in >>&gt...
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
...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:1659 #24 0x00007ffff4b851aa in clang::CodeGen::CodeGenFunction::EmitLValue (this=0x7fffffff9198, E=0xd6a558) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.c...
2012 Feb 21
5
[LLVMdev] buildbot failure in LLVM on clang-x86_64-debian-fnt
...etDeclaration(llvm::Module*, llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>) + 172 7 clang 0x0000000001da8476 llvm::IRBuilderBase::CreateMemCpy(llvm::Value*, llvm::Value*, llvm::Value*, unsigned int, bool, llvm::MDNode*) + 278 8 clang 0x0000000000917059 clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::FunctionDecl const*, unsigned int, clang::CallExpr const*) + 13001 9 clang 0x000000000085491c clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) + 236 10 clang 0x0000000000879146 11 clang 0x00...
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
...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:1659 #24 0x00007ffff4b851aa in clang::CodeGen::CodeGenFunction::EmitLValue (this=0x7fffffff9198, E=0xd6a558) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.c...
2019 Jul 29
4
ICE in release/9.x when using LLVM_ENABLE_MODULES
...ild-s1/bin/clang-9(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x557bc13131b4] /home/modocache/Source/llvm/git/dev/build-s1/bin/clang-9(+0x1649335)[0x557bc1313335] /lib/x86_64-linux-gnu/libpthread.so.0(+0x13f40)[0x7f3bc780af40] /home/modocache/Source/llvm/git/dev/build-s1/bin/clang-9(_ZN5clang7CodeGen15CodeGenFunction18EmitLValueForFieldENS0_6LValueEPKNS_9FieldDeclE+0x8ad)[0x557bc1749abd] ``` I have an immediate workaround -- I can turn off LLVM_ENABLE_MODULES, and the crash goes away. However, I think it might be worth looking into the commit above and determining why it crashes when using `-fmodules`. At firs...
2012 Feb 21
0
[LLVMdev] buildbot failure in LLVM on clang-x86_64-debian-fnt
...lvm::Intrinsic::ID, > llvm::ArrayRef<llvm::Type*>) + 172 > 7 clang 0x0000000001da8476 > llvm::IRBuilderBase::CreateMemCpy(llvm::Value*, llvm::Value*, > llvm::Value*, unsigned int, bool, llvm::MDNode*) + 278 > 8 clang 0x0000000000917059 > clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::FunctionDecl > const*, unsigned int, clang::CallExpr const*) + 13001 > 9 clang 0x000000000085491c > clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, > clang::CodeGen::ReturnValueSlot) + 236 > 10 clang 0x000000000087914...
2012 Apr 23
4
[LLVMdev] gdb + clang/llvm
...175 8 clang 0x0000000000b64b35 9 clang 0x0000000000b66e5e 10 clang 0x0000000000b997b7 11 clang 0x0000000000ba386d 12 clang 0x0000000000ba2c91 13 clang 0x0000000000b9496d 14 clang 0x0000000000ba1a40 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 176 15 clang 0x0000000000c03875 clang::CodeGen::CodeGenFunction::EmitReturnStmt(clang::ReturnStmt const&) + 683 16 clang 0x0000000000c01084 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 742 17 clang...
2012 Apr 23
0
[LLVMdev] gdb + clang/llvm
...0000000b64b35 > 9 clang 0x0000000000b66e5e > 10 clang 0x0000000000b997b7 > 11 clang 0x0000000000ba386d > 12 clang 0x0000000000ba2c91 > 13 clang 0x0000000000b9496d > 14 clang 0x0000000000ba1a40 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 176 > 15 clang 0x0000000000c03875 clang::CodeGen::CodeGenFunction::EmitReturnStmt(clang::ReturnStmt const&) + 683 > 16 clang 0x0000000000c01084 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 742 > 17 c...
2015 Jun 17
2
[LLVMdev] Inline hint for methods defined in-class
Clang adds the InlineHint attribute to functions that are explicitly marked inline, but not if they are defined in the class body. I tried the following patch, which I believe handles the in-class definition case: --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) { if (!CGM.getCodeGenOpts().NoInline) { for (auto RI : FD->redecls()) - if (RI->isInline...
2012 Apr 23
1
[LLVMdev] gdb + clang/llvm
...0x0000000000b66e5e > > 10 clang 0x0000000000b997b7 > > 11 clang 0x0000000000ba386d > > 12 clang 0x0000000000ba2c91 > > 13 clang 0x0000000000b9496d > > 14 clang 0x0000000000ba1a40 > > clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr > > const*, bool) + 176 > > 15 clang 0x0000000000c03875 > > clang::CodeGen::CodeGenFunction::EmitReturnStmt(clang::ReturnStmt > > const&) + 683 > > 16 clang 0x0000000000c01084 > > clang::CodeGen::CodeGenFunc...
2015 Jun 17
2
[LLVMdev] Inline hint for methods defined in-class
...int for methods defined in-class > > Clang adds the InlineHint attribute to functions that are explicitly marked > inline, but not if they are defined in the class body. I tried the following > patch, which I believe handles the in-class definition > case: > > --- a/lib/CodeGen/CodeGenFunction.cpp > +++ b/lib/CodeGen/CodeGenFunction.cpp > @@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, > if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) { > if (!CGM.getCodeGenOpts().NoInline) { > for (auto RI : FD->redecls()) &gt...
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>
2015 Jun 24
4
[LLVMdev] Inline hint for methods defined in-class
...he InlineHint attribute to functions that are explicitly > marked > >> inline, but not if they are defined in the class body. I tried the > following > >> patch, which I believe handles the in-class definition > >> case: > >> > >> --- a/lib/CodeGen/CodeGenFunction.cpp > >> +++ b/lib/CodeGen/CodeGenFunction.cpp > >> @@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, > >> if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) { > >> if (!CGM.getCodeGenOpts().NoInline) { > >&gt...
2015 Aug 18
3
[RFC PATCH 1/2] [clang]: Add AuxAttr support
This patch adds EmitTypeAuxAttribute() function to CGDebugInfo, which allows other parts of clang issue auxiliary information through an enumeration type in Dwarf information. For example, by calling DI->EmitTypeAuxAttribute(type, "ID", 1234); We can get following information in dwarf: <1><3f>: Abbrev Number: 3 (DW_TAG_structure_type) <40> DW_AT_name