[LLVMdev] StructType field names

Anthony Danalis adanalis at eecs.utk.edu
Thu Mar 26 14:39:01 PDT 2009


Hello,

I'm trying to construct a string like "a[1][x].y" in an optimization  
pass by digging deeper and deeper into a GetElementPtrInst.  I can  
successfully deal with the array/pointer part, but when it comes to  
the structure field name "y", I cannot figure out how to get anything  
but the index into the structure.  Is there a way to do that, or is  
this information discarded by llvm?

thanks,
Anthony



More information about the llvm-dev mailing list