Home | History | Annotate | Download | only in CodeGenCXX

Lines Matching refs:type_info

3 struct type_info;
4 namespace std { using ::type_info; }
14 const std::type_info* test0_typeid() { return &typeid(int); }
15 // CHECK-LABEL: define %struct.type_info* @"\01?test0_typeid@@YAPBUtype_info@@XZ"()
16 // CHECK: ret %struct.type_info* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to %struct.type_info*)
18 const std::type_info* test1_typeid() { return &typeid(A); }
19 // CHECK-LABEL: define %struct.type_info* @"\01?test1_typeid@@YAPBUtype_info@@XZ"()
20 // CHECK: ret %struct.type_info* bitcast (%rtti.TypeDescriptor7* @"\01??_R0?AUA@@@8" to %struct.type_info*)
22 const std::type_info* test2_typeid() { return &typeid(&a); }
23 // CHECK-LABEL: define %struct.type_info* @"\01?test2_typeid@@YAPBUtype_info@@XZ"()
24 // CHECK: ret %struct.type_info* bitcast (%rtti.TypeDescriptor7* @"\01??_R0PAUA@@@8" to %struct.type_info*)
26 const std::type_info* test3_typeid() { return &typeid(*fn()); }
27 // CHECK-LABEL: define %struct.type_info* @"\01?test3_typeid@@YAPBUtype_info@@XZ"()
40 // CHECK-NEXT: [[RET:%.*]] = bitcast i8* [[RT]] to %struct.type_info*
41 // CHECK-NEXT: ret %struct.type_info* [[RET]]
43 const std::type_info* test4_typeid() { return &typeid(b); }
44 // CHECK: define %struct.type_info* @"\01?test4_typeid@@YAPBUtype_info@@XZ"()
45 // CHECK: ret %struct.type_info* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to %struct.type_info*)
47 const std::type_info* test5_typeid() { return &typeid(v); }
48 // CHECK: define %struct.type_info* @"\01?test5_typeid@@YAPBUtype_info@@XZ"()
50 // CHECK-NEXT: [[RET:%.*]] = bitcast i8* [[RT]] to %struct.type_info*
51 // CHECK-NEXT: ret %struct.type_info* [[RET]]