Displaying 13 results from an estimated 13 matches for "vectortyid".
Did you mean:
vectorty
2009 Feb 19
3
[LLVMdev] Possible DAGCombiner or TargetData Bug
...SrcValue(),
ST->getSrcValueOffset(), ST->isVolatile(),
OrigAlign);
}
Uhh...this doesn't seem legal to me. How can we just willy-nilly create a
store with a greater alignment? In this case Align is 8 and OrigAlign is 16
because SVT.getTypeForMVT() is Type::VectorTyID (<2 x i64>) which has an ABI
type of VECTOR_ALIGN.
Hmm...why is the ABI alignment for VectorTyID 16? The ABI certainly doesn't
guarantee it. It only guarantees it for __int128, __float128 and __m128.
Lots of other types can map to <2 x i64>.
Any opinions on this?...
2009 Feb 19
0
[LLVMdev] Possible DAGCombiner or TargetData Bug
...ST->getSrcValueOffset(), ST->isVolatile(),
> OrigAlign);
> }
>
> Uhh...this doesn't seem legal to me. How can we just willy-nilly create a
> store with a greater alignment? In this case Align is 8 and OrigAlign is
> 16
> because SVT.getTypeForMVT() is Type::VectorTyID (<2 x i64>) which has an
> ABI
> type of VECTOR_ALIGN.
>
> Hmm...why is the ABI alignment for VectorTyID 16? The ABI certainly
> doesn't
> guarantee it. It only guarantees it for __int128, __float128 and __m128.
> Lots of other types can map to <2 x i64>.
>...
2012 Sep 04
2
[LLVMdev] [NVPTX] Backend cannot handle array-of-arrays constant
...ed to be constant is incorrect. NVPTX does not crash anymore
and produces correct result with the following change:
--- NVPTXAsmPrinter.cpp 2012-09-03 15:14:00.000000000 +0200
+++ NVPTXAsmPrinter.cpp 2012-09-04 15:47:17.859398193 +0200
@@ -1890,17 +1890,15 @@
case Type::ArrayTyID:
case Type::VectorTyID:
case Type::StructTyID: {
- if (isa<ConstantArray>(CPV) || isa<ConstantVector>(CPV) ||
- isa<ConstantStruct>(CPV)) {
+ if (isa<ConstantAggregateZero>(CPV))
+ aggBuffer->addZeros(Bytes);
+ else
+ {
int ElementSize = TD->getTypeAllocSize...
2012 Sep 06
0
[LLVMdev] [NVPTX] Backend cannot handle array-of-arrays constant
...X does not crash anymore
> and produces correct result with the following change:
>
> --- NVPTXAsmPrinter.cpp 2012-09-03 15:14:00.000000000 +0200
> +++ NVPTXAsmPrinter.cpp 2012-09-04 15:47:17.859398193 +0200
> @@ -1890,17 +1890,15 @@
> case Type::ArrayTyID:
> case Type::VectorTyID:
> case Type::StructTyID: {
> - if (isa<ConstantArray>(CPV) || isa<ConstantVector>(CPV) ||
> - isa<ConstantStruct>(CPV)) {
> + if (isa<ConstantAggregateZero>(CPV))
> + aggBuffer->addZeros(Bytes);
> + else
> + {
>...
2011 Jul 14
1
[LLVMdev] [PATCH] OpenCL half support
...eltty x N]
+ TYPE_CODE_STRUCT_NAME = 20, // STRUCT_NAME: [strchr x N]
+ TYPE_CODE_STRUCT_NAMED = 21 // STRUCT_NAMED: [ispacked, eltty x N]
Please make TYPE_CODE_HALF be "21" at the end of the list. Bitcode id's are not allowed to ever change.
+++ b/include/llvm/Type.h
VectorTyID, ///< 14: SIMD 'packed' format, or other vector type
+ HalfTyID, ///< 16: 16-bit floating-point type
The comment is wrong, it should be "15:"
The rest of the patch looks like a reasonable first start, but doesn't include code generation or optimizer ch...
2010 Jan 09
0
[LLVMdev] [PATCH] - Union types, attempt 2
...END_WITH_NULL;
Please update the comments. Also, if you disallow empty unions here, you don't need to pass a context.
+++ include/llvm/Type.h (working copy)
@@ -86,6 +86,7 @@
PointerTyID, ///< 12: Pointers
OpaqueTyID, ///< 13: Opaque: type with unknown structure
VectorTyID, ///< 14: SIMD 'packed' format, or other vector type
+ UnionTyID, ///< 15: Unions
Please put this up next to Struct for simplicity, the numbering here doesn't need to be stable. The numbering in llvm-c/Core.h does need to be stable though.
+bool UnionType::indexV...
2013 Aug 11
3
[LLVMdev] Are integer types primitive?
The LLVM docs seem to indicate that integer types are considered primitive,
however looking at the code I see `FirstDerivedTyID = IntegerTyID`,
implying that integers are derived rather than primitive. Should the docs
be updated?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Jan 06
3
[LLVMdev] [PATCH] - Union types, attempt 2
This patch adds a UnionType to DerivedTypes.h. It also adds code to the
bitcode reader / writer and the assembly parser for the new type, as well as
a tiny .ll test file in test/Assembler. It does not contain any code related
to code generation or type layout - I wanted to see if this much was
acceptable before I proceeded any further.
Unlike my previous patch, in which the Union type was
2010 Mar 29
0
[LLVMdev] Union types
...=======
--- lib/VMCore/Constants.cpp (revision 99809)
+++ lib/VMCore/Constants.cpp (working copy)
@@ -59,6 +59,7 @@
case Type::PointerTyID:
return ConstantPointerNull::get(cast<PointerType>(Ty));
case Type::StructTyID:
+ case Type::UnionTyID:
case Type::ArrayTyID:
case Type::VectorTyID:
return ConstantAggregateZero::get(Ty);
@@ -944,7 +945,8 @@
// Factory Function Implementation
ConstantAggregateZero* ConstantAggregateZero::get(const Type* Ty) {
- assert((Ty->isStructTy() || Ty->isArrayTy() || Ty->isVectorTy()) &&
+ assert((Ty->...
2012 Sep 04
0
[LLVMdev] [NVPTX] Backend cannot handle array-of-arrays constant
NVCC successfully handles the same IR, if we try to process the same
.cu file with clang+nvptx and nvcc:
CLANG/NVPTX:
=============
$ cat dayofweek.cu
__attribute__((device)) char yweek[7][4] = { "MON", "TUE", "WED",
"THU", "FRI", "SAT", "SUN" };
$ clang -cc1 -emit-llvm -fcuda-is-device dayofweek.cu -o dayofweek.ll
$ cat
2010 Mar 29
6
[LLVMdev] Union types
Hi All,
I've noticed the union type in the language manual [1] but it seems
it's not used too much.
According to the manual, the code:
union {
int a;
double b;
} a;
Could be compiled to:
%union.anon = type union { i32, double }
@a = common global %union.anon zeroinitializer, align 8 ;
<%union.anon*> [#uses=0]
But when I try to assemble it, I get:
$ llvm-as union.ll
2010 Jan 11
2
[LLVMdev] [PATCH] - Union types, attempt 2
...ents. Also, if you disallow empty unions here, you
> don't need to pass a context.
>
>
> +++ include/llvm/Type.h (working copy)
> @@ -86,6 +86,7 @@
> PointerTyID, ///< 12: Pointers
> OpaqueTyID, ///< 13: Opaque: type with unknown structure
> VectorTyID, ///< 14: SIMD 'packed' format, or other vector type
> + UnionTyID, ///< 15: Unions
>
> Please put this up next to Struct for simplicity, the numbering here
> doesn't need to be stable. The numbering in llvm-c/Core.h does need to be
> stable though.
&...
2012 Sep 03
2
[LLVMdev] [NVPTX] Backend cannot handle array-of-arrays constant
Dear all,
Looks like the NVPTX backend cannot handle array-of-arrays contant
(please see the reporocase below). Is it supposed to work? Any ideas
how to get it working? Important for our target applications.
Thanks,
- Dima.
$ cat test.ll
; ModuleID = '__kernelgen_main_module'
target datalayout =