search for: simplstruct

Displaying 2 results from an estimated 2 matches for "simplstruct".

Did you mean: simplestruct
2002 Sep 17
3
[LLVMdev] questions
...member functions in LLVM. So would you please clarify some problems I have? 1. If I see this instruction in the function. %S.i = alloca %struct.SimpleStruct Suppose SimpleStruct is as following: struct.SimpleStruct = type { int, double } When I read the instruction, how can I know the type of simplstruct, should I use 'getType' member function like Inst.getType()? If I use that, I will get a PointerType, how can I use it? 2. Another question is that since we do the scalar replacement on each function. If the program look like this. struct s { int a; float b; } fun1( struct s *ps) {...
2002 Sep 17
0
[LLVMdev] questions
...LVM. So would you please clarify some problems } I have? } } 1. If I see this instruction in the function. } } %S.i = alloca %struct.SimpleStruct } } Suppose SimpleStruct is as following: } struct.SimpleStruct = type { int, double } } } When I read the instruction, how can I know the type of } simplstruct, should I use 'getType' member function like } Inst.getType()? If I use that, I will get a PointerType, how } can I use it? } I used the "dyn_cast<>" method to dynamically check whether something is of a given type. dyn_cast<> helpfully returns 0 if it's not of th...