问题
I create a class called student:
class Student{
public:
int getNumber() const {
return number;
}
virtual void setNumber(int number) {
Student::number = number;
}
private:
int number;
};
and converted it to IR, but there's one part confused me a lot:
%class.Student = type <{ i32 (...)**, i32, [4 x i8] }>
I believe the i32 (...)**
part is for v-table, the i32
part is for int number
and the [4 x i8]
part is for alignment. But I searched the language references and could not find what i32 (...)**
means, can anybody tells me what that mean?
来源:https://stackoverflow.com/questions/54665797/llvm-what-does-i32-mean-in-type-define