search for: isfirstclass

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

Did you mean: firstclass
2008 Nov 13
0
[LLVMdev] Using isa with derived types
...StructTyID: ... case Type::IntegerTyID: ... } } A switch on getTypeID() is equivalent to isa<>, but more efficient than a chain of if's when doing multiple tests. If you only care about whether it's first class or not, you can just call InnerTy->isFirstClass(). Nick Lewycky
2008 Nov 13
3
[LLVMdev] Using isa with derived types
Hello, I am writing an optimization pass which optimizes code based on an online pointer analysis algorithm and need to detect pointers which are pointing to derived types. I have not had any problem identifying pointers in general using isa<PointerType>(...), but I can't seem to figure out how I can make sure that the pointer is pointing to a scalar value and not a function, array,