Lines Matching refs:GUID
1 // RUN: %clang_cc1 -emit-llvm %s -o - -DDEFINE_GUID -triple=i386-pc-linux -fms-extensions | FileCheck %s --check-prefix=CHECK-DEFINE-GUID
3 // RUN: %clang_cc1 -emit-llvm %s -o - -DDEFINE_GUID -DWRONG_GUID -triple=i386-pc-linux -fms-extensions | FileCheck %s --check-prefix=CHECK-DEFINE-WRONG-GUID
17 typedef struct _GUID GUID;
25 GUID thing = __uuidof(Curly);
26 // CHECK-DEFINE-GUID: @thing = global %struct._GUID zeroinitializer, align 4
27 // CHECK-DEFINE-WRONG-GUID: @thing = global %struct._GUID zeroinitializer, align 4
30 // CHECK-DEFINE-GUID: @g = global %struct._GUID zeroinitializer, align 4
31 // CHECK-DEFINE-WRONG-GUID: @g = global %struct._GUID zeroinitializer, align 4
32 GUID g = __uuidof(S1);
38 const GUID& gr = __uuidof(S1);
41 const GUID* gp = &__uuidof(S1);
44 const GUID* cp = &__uuidof(Curly);
48 const GUID& zeroiid = __uuidof(0);
55 // CHECK-DEFINE-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* bitcast (%struct._GUID* @thing to i8*), i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ac to i8*), i32 16, i32 4, i1 false)
56 // CHECK-DEFINE-WRONG-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* bitcast (%struct._GUID* @thing to i8*), i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ac to i8*), i32 4, i32 4, i1 false)
59 // CHECK-DEFINE-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* bitcast (%struct._GUID* @g to i8*), i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 16, i32 4, i1 false)
60 // CHECK-DEFINE-WRONG-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* bitcast (%struct._GUID* @g to i8*), i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 4, i32 4, i1 false)
64 // CHECK-DEFINE-GUID: %s1_1 = alloca %struct._GUID, align 4
65 // CHECK-DEFINE-WRONG-GUID: %s1_1 = alloca %struct._GUID, align 4
66 // CHECK-DEFINE-GUID: %s1_2 = alloca %struct._GUID, align 4
67 // CHECK-DEFINE-WRONG-GUID: %s1_2 = alloca %struct._GUID, align 4
68 // CHECK-DEFINE-GUID: %s1_3 = alloca %struct._GUID, align 4
69 // CHECK-DEFINE-WRONG-GUID: %s1_3 = alloca %struct._GUID, align 4
71 // CHECK-DEFINE-GUID: [[U1:%.+]] = bitcast %struct._GUID* %s1_1 to i8*
72 // CHECK-DEFINE-WRONG-GUID: [[U1:%.+]] = bitcast %struct._GUID* %s1_1 to i8*
73 // CHECK-DEFINE-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U1]], i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 16, i32 4, i1 false)
74 // CHECK-DEFINE-WRONG-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U1]], i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 4, i32 4, i1 false)
75 GUID s1_1 = __uuidof(S1);
77 // CHECK-DEFINE-GUID: [[U2:%.+]] = bitcast %struct._GUID* %s1_2 to i8*
78 // CHECK-DEFINE-WRONG-GUID: [[U2:%.+]] = bitcast %struct._GUID* %s1_2 to i8*
79 // CHECK-DEFINE-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U2]], i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 16, i32 4, i1 false)
80 // CHECK-DEFINE-WRONG-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U2]], i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 4, i32 4, i1 false)
81 GUID s1_2 = __uuidof(S1);
83 // CHECK-DEFINE-GUID: [[U3:%.+]] = bitcast %struct._GUID* %s1_3 to i8*
84 // CHECK-DEFINE-WRONG-GUID: [[U3:%.+]] = bitcast %struct._GUID* %s1_3 to i8*
85 // CHECK-DEFINE-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U3]], i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 16, i32 4, i1 false)
86 // CHECK-DEFINE-WRONG-GUID: call void @llvm.memcpy.p0i8.p0i8.i32(i8* [[U3]], i8* bitcast ({ i32, i16, i16, [8 x i8] }* @_GUID_12345678_1234_1234_1234_1234567890ab to i8*), i32 4, i32 4, i1 false)
87 GUID s1_3 = __uuidof(s1);
93 // CHECK-DEFINE-GUID: %s2_1 = alloca %struct._GUID, align 4
94 // CHECK-DEFINE-WRONG-GUID: %s2_1 = alloca %struct._GUID, align 4
95 // CHECK-DEFINE-GUID: %s2_2 = alloca %struct._GUID, align 4
96 // CHECK-DEFINE-WRONG-GUID: %s2_2 = alloca %struct._GUID, align 4
97 GUID s2_1 = __uuidof(S2);
98 GUID s2_2 = __uuidof(S2);
105 const GUID& r = __uuidof(S2);
107 const GUID* p = &__uuidof(S2);
111 const GUID& zeroiid = __uuidof(0);