search for: cgexprscalar

Displaying 13 results from an estimated 13 matches for "cgexprscalar".

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> > Cc: LLVMdev at cs.uiuc.edu...
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. So, I configured the project with: ../llvm/configure --p...
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
2019 Jul 29
4
ICE in release/9.x when using LLVM_ENABLE_MODULES
I ran into an LLVM/Clang crash when attempting to do the following: 1. Build Clang from the release/9.x branch source. 2. Use the Clang from (1) to build clangd on the release/9.x branch, with LLVM_ENABLE_MODULES=On. I wrote a script to reproduce the crash: https://gist.github.com/modocache/ac366ca9673b93bb21e75d3e72162608 At the above URL, you'll find a script `repro.sh` that reproduces
2016 Jul 14
4
Let's stop using target specific intrinsics in generic code
...ead of doing the right way, but maybe there are places here where we need to wire in target hooks. For now I'm considering clang out of scope, but being able to tell which target an intrinsic is for should also pretty easily clean it up too - other than a couple of references to ppc.altivec in CGExprScalar and a strange use of an x86 intrinsic in generic looking EH code, it's all confined to CGBuiltin.cpp and split up by target anyway. -------------- next part -------------- A non-text attachment was scrubbed... Name: intrinsics-generic-v-target.patch Type: text/x-patch Size: 13086 bytes Desc: n...
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? >> >> You set a breakpoint and ask to see a backtrace? >> >> -eric > > haha, OK, I think I should be more specific. > > So, I configure...
2012 Apr 23
1
[LLVMdev] gdb + clang/llvm
...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? > >> > >> You set a breakpoint and ask to see a backtrace? > >> > >> -eric > > > > haha, OK, I think I should...
2015 Aug 11
2
NSW and ExtLdPromotion()
...nation of nsw flag and ExtLdPromotion, I am leaning to say Clang set nsw flag incorrectly, but please let me know if I was wrong. Here is the reduced testcase: long long foo(int *a) { long long c; c = *a * 1405; return c; } Clang emitted the following IR (It is done by EmitMUL() in CGExprScalar.cpp, while CGF.getLangOpts().getSignedOverflowBehavior()=LangOptions::SOB_Undefined and CGF.SanOpts.has(SanitizerKind::SignedIntegerOverflow)=false): ; Function Attrs: nounwind readonly define i64 @foo(i32* nocapture readonly %a) #0 { entry: %0 = load i32* %a, align 4, !tbaa !1 %mul = m...
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
...this=0x7fffffff9198, E=0xd6a5b0, ReturnValue=...) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.cpp:2696 #27 0x00007ffff4bdbbe4 in (anonymous namespace)::ScalarExprEmitter::VisitCallExpr (this=0x7fffffff7d98, E=0xd6a5b0) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExprScalar.cpp:282 #28 0x00007ffff4bdbc68 in clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::ScalarExprEmitter, llvm::Value*>::VisitCXXMemberCallExpr (this=0x7fffffff7d98, S=0xd6a5b0) at /home/athirumurthi/git/lldb/build/tools/clang/lib/CodeGen/../../include/clang/AST/StmtNodes.inc:28...
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
...this=0x7fffffff9198, E=0xd6a5b0, ReturnValue=...) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExpr.cpp:2696 #27 0x00007ffff4bdbbe4 in (anonymous namespace)::ScalarExprEmitter::VisitCallExpr (this=0x7fffffff7d98, E=0xd6a5b0) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGExprScalar.cpp:282 #28 0x00007ffff4bdbc68 in clang::StmtVisitorBase<clang::make_ptr, (anonymous namespace)::ScalarExprEmitter, llvm::Value*>::VisitCXXMemberCallExpr (this=0x7fffffff7d98, S=0xd6a5b0) at /home/athirumurthi/git/lldb/build/tools/clang/lib/CodeGen/../../include/clang/AST/StmtNodes.inc:28...
2012 Apr 13
0
[LLVMdev] gdb + clang/llvm
On Apr 13, 2012, at 3:45 PM, Roland Leißa <leissa at cs.uni-saarland.de> wrote: > Hi Eric, > > I'm using gcc. My make command is > make -j9 > > as mentioned earlier, the -cc1 switch did the trick for me. Thanks for helping out. Aha. Yes, that'd do it. Glad you're up and debugging. -eric
2012 Apr 13
2
[LLVMdev] gdb + clang/llvm
Hi Eric, I'm using gcc. My make command is make -j9 as mentioned earlier, the -cc1 switch did the trick for me. Thanks for helping out. -- Roland ----- Original Message ----- > From: "Eric Christopher" <echristo at apple.com> > To: "Roland Leißa" <leissa at cs.uni-saarland.de> > Cc: LLVMdev at cs.uiuc.edu > Sent: Freitag, 13. April 2012 14:39:53
2014 Mar 07
3
[LLVMdev] [RFC] Add second "failure" AtomicOrdering to cmpxchg instruction
...nctionDecl *FD, EmitScalarExpr(E->getArg(0)), EmitScalarExpr(E->getArg(2)), EmitScalarExpr(E->getArg(1)), + SequentiallyConsistent, SequentiallyConsistent); CXI->setVolatile(true); return RValue::get(CXI); diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 580cb15..5f932b0 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1735,8 +1735,9 @@ ScalarExprEmitter::EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV, if (atomicPHI) { llvm::BasicBlock *opBB = Builder.GetIns...