Displaying 5 results from an estimated 5 matches for "cgdeclcxx".
2014 Mar 20
3
[LLVMdev] So what's the deal with debug_frame V eh_frame
...frame.
Here's an example:
int f1();
int i = f1();
void func() { }
Compiled with -fno-exceptions -g.
The first two lines produce a global ctor.
Clang is generous enough to flag the LLVM IR function for this global
ctor ("__cxx_global_var_init") as nounwind
(tools/clang/lib/CodeGen/CGDeclCXX.cpp:246), though "func" gets
flagged as nounwind but also as uwtable (why? I don't really
understand these semantics & haven't tracked down where that attribute
gets applied)
Without 'func' in this translation unit, LLVM emits a debug_frame
section (because no functio...
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
...mitScalarInit (this=0x7fffffff9198, init=0xd6a5b0, D=0xd6a630, lvalue=..., capturedByInit=false)
at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGDecl.cpp:536
#33 0x00007ffff4b75d22 in EmitDeclInit (CGF=..., D=..., DeclPtr=0xd83068) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGDeclCXX.cpp:46
#34 0x00007ffff4b758c7 in clang::CodeGen::CodeGenFunction::EmitCXXGlobalVarDeclInit (this=0x7fffffff9198, D=..., DeclPtr=0xd83068, PerformInit=true)
at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGDeclCXX.cpp:134
#35 0x00007ffff4cd726f in (anonymous namespace)::ItaniumCXXABI::Em...
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
...mitScalarInit (this=0x7fffffff9198, init=0xd6a5b0, D=0xd6a630, lvalue=..., capturedByInit=false)
at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGDecl.cpp:536
#33 0x00007ffff4b75d22 in EmitDeclInit (CGF=..., D=..., DeclPtr=0xd83068) at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGDeclCXX.cpp:46
#34 0x00007ffff4b758c7 in clang::CodeGen::CodeGenFunction::EmitCXXGlobalVarDeclInit (this=0x7fffffff9198, D=..., DeclPtr=0xd83068, PerformInit=true)
at /home/athirumurthi/git/lldb/tools/clang/lib/CodeGen/CGDeclCXX.cpp:134
#35 0x00007ffff4cd726f in (anonymous namespace)::ItaniumCXXABI::Em...
2014 Mar 20
2
[LLVMdev] So what's the deal with debug_frame V eh_frame
...}
>>
>> Compiled with -fno-exceptions -g.
>>
>> The first two lines produce a global ctor.
>>
>> Clang is generous enough to flag the LLVM IR function for this global
>> ctor ("__cxx_global_var_init") as nounwind
>> (tools/clang/lib/CodeGen/CGDeclCXX.cpp:246), though "func" gets
>> flagged as nounwind but also as uwtable (why? I don't really
>> understand these semantics & haven't tracked down where that attribute
>> gets applied)
>
> Is this x86-64? If so, uwtable is a abi requirement. It says that...
2018 Nov 25
6
RFC: Modernizing our use of auto
I'm not advocating AAA.
However this is a proposal for more modern thinking regarding the
permissiveness of auto in LLVM codebases.
Currently the rule on the use of auto is here:
https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
It is quite strict. It allows the use of auto for
* lambdas
* iterators because they are long to type
* casts to