search for: isstructty

Displaying 6 results from an estimated 6 matches for "isstructty".

2011 Dec 06
3
[LLVMdev] Regarding anonymous types
...a name is given to it, i.e anonanonct.   I need this information as I want to collect all type-names.     Thanks & Regards, Pankaj     for(TypeSymbolTable::const_iterator I = M->getTypeSymbolTable().begin(),       E = M->getTypeSymbolTable().end(); I != E; ++I) {    if( I->second->isStructTy() )    {      //code to collect type names    }      }   I don't get this type in TypeSymbolTable.  :( -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111206/988f7012/attachment.html>
2011 Dec 06
0
[LLVMdev] Regarding anonymous types
..."%0" is interesting case. > When I try to extract types using "Module_Ptr->getTypeSymbolTable()". > for(TypeSymbolTable::const_iterator I = M->getTypeSymbolTable().begin(), > E = M->getTypeSymbolTable().end(); I != E; ++I) { > if( I->second->isStructTy() ) > { > //code to collect type names > } > } > > I don't get this type in TypeSymbolTable. :( > > Though > struct{ > union { > char a[4]; > }; > }; > too is anonymous, but a name is given to it, i.e anonanonct. > > I n...
2013 Feb 25
2
[LLVMdev] Queries regarding function's arguments data type
...; "\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 parameter type is pointer / array, how can I figure it out whether its character pointer or integer pointer? Also if it...
2010 Mar 29
0
[LLVMdev] Union types
...::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->isStructTy() || Ty->isUnionTy() + || Ty->isArrayTy() || Ty->isVectorTy()) && "Cannot create an aggregate zero of non-aggregate type!"); LLVMContextImpl *pImpl = Ty->ge...
2013 Feb 25
0
[LLVMdev] Queries regarding function's arguments data type
...inter : " << > 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 parameter type is pointer / array, how > can I figure it out whether its character pointer...
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