Displaying 10 results from an estimated 10 matches for "isaggregatetyp".
Did you mean:
isaggregatetype
2010 Jan 18
5
[LLVMdev] [patch] Union Types - work in progress
...tructType>(Val0->getType()) && !isa<ArrayType>(Val0-
>getType()))
+ if (!isa<StructType>(Val0->getType()) && !isa<ArrayType>(Val0-
>getType()) &&
+ !isa<UnionType>(Val0->getType()))
How about changing this to use Type::isAggregateType() instead of
enumerating? This happens a few times in LLParser.cpp
+ if (ID.ConstantVal->getType() != Ty) {
+ // Allow a constant struct with a single member to be converted
+ // to a union, if the union has a member which is the same type
+ // as the struct member.
+...
2010 Jan 28
0
[LLVMdev] [patch] Union Types - work in progress
...getType()) &&
> !isa<ArrayType>(Val0->getType()))
> + if (!isa<StructType>(Val0->getType()) &&
> !isa<ArrayType>(Val0->getType()) &&
> + !isa<UnionType>(Val0->getType()))
>
> How about changing this to use Type::isAggregateType() instead of
> enumerating? This happens a few times in LLParser.cpp
>
>
> + if (ID.ConstantVal->getType() != Ty) {
> + // Allow a constant struct with a single member to be converted
> + // to a union, if the union has a member which is the same type
> +...
2006 Sep 11
5
[LLVMdev] trying to build llvm-gcc in linux/amd64
...ad to add the attached
patch to get the build system to select the correct library. Now the
build fails while compiling a code that has __builtin_va_copy. The
attached test.i fails with:
cc1: ../../trunk/gcc/llvm-convert.cpp:443: llvm::Value*
TreeToLLVM::Emit(tree_node*, llvm::Value*): Assertion
`(isAggregateType(((exp)->common.type)) == (DestLoc != 0) || ((enum
tree_code) (exp)->common.code) == MODIFY_EXPR) && "Didn't pass DestLoc
to an aggregate expr, or passed it to scalar!"' failed.
I know that linux/amd64 is not currently supported, but does someone
knows how to fix th...
2010 Jan 28
0
[LLVMdev] [patch] Union Types - work in progress
...getType()) &&
> !isa<ArrayType>(Val0->getType()))
> + if (!isa<StructType>(Val0->getType()) &&
> !isa<ArrayType>(Val0->getType()) &&
> + !isa<UnionType>(Val0->getType()))
>
> How about changing this to use Type::isAggregateType() instead of
> enumerating? This happens a few times in LLParser.cpp
>
>
> + if (ID.ConstantVal->getType() != Ty) {
> + // Allow a constant struct with a single member to be converted
> + // to a union, if the union has a member which is the same type
> +...
2017 Jul 25
2
Identify c-style pointer to array
HI all,
in C/C++, arrays and matrices often are passed as pointer so functions.
Suppose I'd like to write a pass operating on arrays , for example an
array of doubles passed via double * and checking for the type i will
identify a pointer to double (isAggregateType()=false).
As this style of passing arrays using pointers is widely used, I wonder
if there is any chance to identify a pointer type function argument (or
even pointer to pointer in the case of a 2d array) as array?
Thx
Alexander
2010 Jan 16
0
[LLVMdev] [patch] Union Types - work in progress
OK here's the patch for real this time :)
On Fri, Jan 15, 2010 at 4:36 PM, Talin <viridia at gmail.com> wrote:
> Here's a work in progress of the union patch. Note that the test "union.ll"
> does not work, so you probably don't want to check this in as is. However,
> I'd be interested in any feedback you're willing to give.
>
> --
> -- Talin
2010 Jan 16
2
[LLVMdev] [patch] Union Types - work in progress
Here's a work in progress of the union patch. Note that the test "union.ll"
does not work, so you probably don't want to check this in as is. However,
I'd be interested in any feedback you're willing to give.
--
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Sep 11
0
[LLVMdev] trying to build llvm-gcc in linux/amd64
...build system to select the correct library. Now the
Applied.
> build fails while compiling a code that has __builtin_va_copy. The
> attached test.i fails with:
>
> cc1: ../../trunk/gcc/llvm-convert.cpp:443: llvm::Value*
> TreeToLLVM::Emit(tree_node*, llvm::Value*): Assertion
> `(isAggregateType(((exp)->common.type)) == (DestLoc != 0) || ((enum
> tree_code) (exp)->common.code) == MODIFY_EXPR) && "Didn't pass DestLoc
> to an aggregate expr, or passed it to scalar!"' failed.
>
> I know that linux/amd64 is not currently supported, but does someone...
2012 Feb 10
1
[LLVMdev] Prevent DAG combiner from changing "store ConstFP, addr" to integer store
This code lives in DAGCombiner.cpp:
-------------
// Turn 'store float 1.0, Ptr' -> 'store int 0x12345678, Ptr'
if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Value)) {
// NOTE: If the original store is volatile, this transform must not
increase
// the number of stores. For example, on x86-32 an f64 can be stored
in one
// processor operation but
2010 Feb 10
3
[LLVMdev] [patch] Union Types - work in progress
...t;> !isa<ArrayType>(Val0->getType()))
>> + if (!isa<StructType>(Val0->getType()) &&
>> !isa<ArrayType>(Val0->getType()) &&
>> + !isa<UnionType>(Val0->getType()))
>>
>> How about changing this to use Type::isAggregateType() instead of
>> enumerating? This happens a few times in LLParser.cpp
>>
>>
>> + if (ID.ConstantVal->getType() != Ty) {
>> + // Allow a constant struct with a single member to be converted
>> + // to a union, if the union has a member which is t...