Displaying 4 results from an estimated 4 matches for "isarrayty".
Did you mean:
isarray
2013 Feb 25
2
[LLVMdev] Queries regarding function's arguments data type
...lt; "\n2 Argument type char : " <<
FTy->getParamType(0)->isIntegerTy(8);
errs() << "\n4 Argument type pointer : " <<
FTy->getParamType(0)->isPointerTy();
errs() << "\n5 Argument type array : " <<
FTy->getParamType(0)->isArrayTy();
errs() << "\n6 Argument type structure : " <<
FTy->getParamType(0)->isStructTy();
I can just find these many data types for integer and characters. This just
tells me that parameter is of type pointer or array or structure.
My question is if function's paramet...
2010 Mar 29
0
[LLVMdev] Union types
...ype::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->isStructTy() || Ty->isUnionTy()
+ || Ty->isArrayTy() || Ty->isVectorTy()) &&
"Cannot create an aggregate zero of non-aggregate type!");
LLVMContextImpl *pImpl = Ty->getContext().pImpl;
2013 Feb 25
0
[LLVMdev] Queries regarding function's arguments data type
...char : " <<
> FTy->getParamType(0)->isIntegerTy(8);
> errs() << "\n4 Argument type pointer : " <<
> FTy->getParamType(0)->isPointerTy();
> errs() << "\n5 Argument type array : " <<
> FTy->getParamType(0)->isArrayTy();
> errs() << "\n6 Argument type structure : " <<
> FTy->getParamType(0)->isStructTy();
>
> I can just find these many data types for integer and characters. This
> just tells me that parameter is of type pointer or array or structure.
>
> My qu...
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