Displaying 17 results from an estimated 17 matches for "cgexpr".
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
2019 Jul 16
4
Scalable Vector Types in IR - Next Steps?
...llvm/IR/Constants.h
> llvm/include/llvm/IR/Value.def
> llvm/lib/IR/Constants.cpp
>
> However, things seems to be a bit more complicated - it seems I need to patch also files in the clang folder also (https://github.com/ARM-software/Clang-SVE, for example clang/lib/CodeGen/CGExpr.cpp) since I get errors like: <<tools/clang/lib/CodeGen/CGExpr.cpp:3337: clang::CodeGen::Address emitArraySubscriptGEP(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, llvm::ArrayRef<llvm::Value*>, clang::QualType, bool, bool, clang::SourceLocation, const llvm::Twine&)...
2019 Mar 29
2
Scalable Vector Types in IR - Next Steps?
I had a phone conversation yesterday with Graham, Francesco,
and Kristof.
There is one more reason to go with the native type change:
ARM has already written the code with the SV types, and they
have patches ready to be reviewed and integrated in LLVM.
As I don't want to stand in the way of getting SVE in LLVM
as soon as possible, I will also support the integration of the
existing patches
2013 Feb 08
2
[LLVMdev] assert when mixing static and non-static members with an external AST source
...odeGen::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:1659
#24 0x00007ffff4b851aa in clang::CodeGen::CodeGenFunction::EmitLValue (this=0x7fffffff9198, E=0xd6a558)...
2013 Feb 15
0
[LLVMdev] assert when mixing static and non-static members with an external AST source
...odeGen::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:1659
#24 0x00007ffff4b851aa in clang::CodeGen::CodeGenFunction::EmitLValue (this=0x7fffffff9198, E=0xd6a558)...
2016 Dec 21
2
*********How to get during compile time the base class of casted C++ object inside static_cast<> and dynamic_cast<> and the pointer of the casted object
..., etc.) can I get the base class
of D and the base class ob b. Is this
available in the Clang compiler or LTO?
Also, if b is an object of a virtual Class (class with inherited or its
own virtual functions) can I get its virtual pointer at compile time
by using the LTO?
I found out that in CodeGen/CGExpr.cpp the explicit case "BaseToDerived" is
handled and you can retrieve TypeSourceInfo using the function
getTypeInfoAsWritten(). It seems that this information is enough to get
the exact type of this cast at compile-time and should also work for
Template programming, as my, understanding i...
2016 Dec 13
1
help needed: How to get during compile time the base class of casted C++ object inside static_cast<> and dynamic_cast<> and the pointer of the casted object
..., etc.) can I get the base class
of D and the base class ob b. Is this
available in the Clang compiler or LTO?
Also, if b is an object of a virtual Class (class with inherited or its
own virtual functions) can I get its virtual pointer at compile time
by using the LTO?
I found out that in CodeGen/CGExpr.cpp the explicit case "BaseToDerived" is
handled and you can retrieve TypeSourceInfo using the function
getTypeInfoAsWritten(). It seems that this information is enough to get
the exact type of this cast at compile-time and should also work for
Template programming, as my, understanding i...
2016 Dec 21
0
*********How to get during compile time the base class of casted C++ object inside static_cast<> and dynamic_cast<> and the pointer of the casted object
...D and the base class ob b. Is this
> available in the Clang compiler or LTO?
>
> Also, if b is an object of a virtual Class (class with inherited or its
> own virtual functions) can I get its virtual pointer at compile time
> by using the LTO?
>
> I found out that in CodeGen/CGExpr.cpp the explicit case "BaseToDerived" is
> handled and you can retrieve TypeSourceInfo using the function
> getTypeInfoAsWritten(). It seems that this information is enough to get
> the exact type of this cast at compile-time and should also work for
> Template programming, as...
2016 Dec 21
0
*********How to get during compile time the base class of casted C++ object inside static_cast<> and dynamic_cast<> and the pointer of the casted object
...le in the Clang compiler or LTO?
>>>
>>> Also, if b is an object of a virtual Class (class with inherited or its
>>> own virtual functions) can I get its virtual pointer at compile time
>>> by using the LTO?
>>>
>>> I found out that in CodeGen/CGExpr.cpp the explicit case "BaseToDerived" is
>>> handled and you can retrieve TypeSourceInfo using the function
>>> getTypeInfoAsWritten(). It seems that this information is enough to get
>>> the exact type of this cast at compile-time and should also work for
>&...
2019 Jan 14
2
Aliasing rules difference between GCC and Clang
Hi,
It was a while now since I first asked about TBAA, and I am now getting
back to this, trying to understand TBAA as it seems that the issue I
described earlier originally in this thread is still one of many "TODO"s
in CGExpr.cpp
(http://lists.llvm.org/pipermail/llvm-dev/2018-September/126290.html).
I would like to help on this to the best of my abilities, but I'm not
quite sure if there is a current plan of incremental changes, or if it
would be possible to handle the array member of a struct case
specifically...
2016 Dec 16
0
Help needed: How to get during compile time the base class of casted C++ object inside static_cast<> and dynamic_cast<> and the pointer of the casted object
..., etc.) can I get the base class
of D and the base class ob b. Is this
available in the Clang compiler or LTO?
Also, if b is an object of a virtual Class (class with inherited or its
own virtual functions) can I get its virtual pointer at compile time
by using the LTO?
I found out that in CodeGen/CGExpr.cpp the explicit case "BaseToDerived" is
handled and you can retrieve TypeSourceInfo using the function
getTypeInfoAsWritten(). It seems that this information is enough to get
the exact type of this cast at compile-time and should also work for
Template programming, as my, understanding i...
2010 Nov 10
1
[LLVMdev] Two questions about creating a new target
Hi list,
I am in the process of creating a new target in LLVM/Clang for a
custom 16-bit machine. My initial goal is to configure Clang so that
when LLVM bytecode (or assembly) is generated, the integer size is 16
bits.
After defining an appropriate TargetInfo subclass (where integer size
is set to 16) the generated LLVM assembly looks almost correct,
however one of the parameters for
2011 Aug 19
3
[LLVMdev] Why int variable get promoted to i64
Hi, all
I found in some cases the int variable get promoted to i64,
although I think it should i32. I use the online demo
(http://llvm.org/demo). And below is the test case.
------------- test case -------------
int test(int x[], int y[], int n) {
int i = 0;
int sum = 0;
for ( ; i < n; i++) {
sum += x[i] * y[i];
}
return sum;
}
-------------------------------------
No
2019 Oct 04
2
Opportunity to split store of shuffled vector.
Canonicalizing to a masked store intrinsic is possible, but we might have
to expand back to the load/shuffle/store sequence for targets that don't
support masked store. And then you'd likely have to do the store splitting
that I think is being requested for the original pattern anyway.
But I'd like to step back to the premise - "LLVM seems to always generate
vector instructions
2016 Dec 21
3
*********How to get during compile time the base class of casted C++ object inside static_cast<> and dynamic_cast<> and the pointer of the casted object
.... Is this
>> available in the Clang compiler or LTO?
>>
>> Also, if b is an object of a virtual Class (class with inherited or its
>> own virtual functions) can I get its virtual pointer at compile time
>> by using the LTO?
>>
>> I found out that in CodeGen/CGExpr.cpp the explicit case
>> "BaseToDerived" is
>> handled and you can retrieve TypeSourceInfo using the function
>> getTypeInfoAsWritten(). It seems that this information is enough to get
>> the exact type of this cast at compile-time and should also work for
>>...
2019 Jan 18
2
Aliasing rules difference between GCC and Clang
...k.com
>>
>> Hi,
>>
>> It was a while now since I first asked about TBAA, and I am now getting
>> back to this, trying to understand TBAA as it seems that the issue I
>> described earlier originally in this thread is still one of many "TODO"s
>> in CGExpr.cpp
>> (http://lists.llvm.org/pipermail/llvm-dev/2018-September/126290.html).
>>
>> I would like to help on this to the best of my abilities, but I'm not
>> quite sure if there is a current plan of incremental changes, or if it
>> would be possible to handle the ar...
2016 Mar 13
2
LLVM-related research position at University of Cambridge Computer Lab
Hi all,
We are advertising a position for a research assistant / research
associate at the University of Cambridge Computer Lab, working with
LLVM targeting the Loki (http://www.cl.cam.ac.uk/~rdm34/loki/)
architecture. For full details please see
http://www.jobs.cam.ac.uk/job/9756/, though the 'meat' of the advert
is pasted below. The Loki project has been my main focus for a number
of