/llvm-project/clang/test/SemaObjC/ |
H A D | x86-method-vector-values.m | 14 typedef __attribute__((__ext_vector_type__(3))) float float3; typedef 29 -(void)takeVector:(float3)v; // there should be no diagnostic at declaration argument 38 -(void)takeVector:(float3)v { argument 40 …// expected-error@-2 {{'float3' (vector of 3 'float' values) parameter type is unsupported; suppor… 42 …// expected-error@-4 {{'float3' (vector of 3 'float' values) parameter type is unsupported; suppor… 46 -(float3)retVector { // expected-error {{'float3' (vector of 3 'float' values) return type is unsup… 49 -(void)takeVector2:(float3)v AVAILABLE_MACOS_10_10 { // expected-error {{'float3' (vector of 3 'flo… argument 52 -(void)takeVector3:(float3)v AVAILABLE_MACOS_10_11 { // expected-error {{'float3' (vector of 3 'flo… argument 55 -(void)takeVector4:(float3)v AVAILABLE_IOS_8 { // expected-error {{'float3' (vector of 3 'float' va… argument 58 -(void)takeVector5:(float3)v AVAILABLE_IOS_9 { // expected-error {{'float3' (vector of 3 'float' va… argument [all …]
|
/llvm-project/clang/lib/Headers/hlsl/ |
H A D | hlsl_intrinsics.h | 90 float3 abs(float3); 136 float3 acos(float3); 221 bool all(float3); 333 bool any(float3); 439 float3 asin(float3); 501 float3 atan(float3); [all...] |
/llvm-project/clang/test/CodeGen/PowerPC/ |
H A D | ppc64le-aggregates.c | 242 typedef float float3 __attribute__((vector_size (12))); typedef 244 struct v3f1 { float3 v[1]; }; 245 struct v3f2 { float3 v[2]; }; 246 struct v3f3 { float3 v[3]; }; 247 struct v3f4 { float3 v[4]; }; 248 struct v3f5 { float3 v[5]; }; 249 struct v3f6 { float3 v[6]; }; 250 struct v3f7 { float3 v[7]; }; 251 struct v3f8 { float3 v[8]; }; 252 struct v3f9 { float3 v[9]; }; [all …]
|
/llvm-project/clang/test/SemaHLSL/BuiltIns/ |
H A D | vector-constructors-erros.hlsl | 4 typedef float float3 __attribute__((ext_vector_type(3))); 13 …float3 NormieVec = float3(LilVec, 3.0, 4.0); // expected-error{{excess elements in vector initiali… 14 …float3 BrokenNormie = float3(3.0, 4.0); // expected-error{{too few elements in vector initializati… 15 …float3 OverwhemledNormie = float3(3.0, 4.0, 5.0, 6.0); // expected-error{{excess elements in vecto…
|
H A D | mad-errors.hlsl | 23 float2 test_mad_vector_size_mismatch(float3 p0, float2 p1) { 25 // expected-warning@-1 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') to 'vector<float, 2>' (vector of 2 'float' values)}} 28 float2 test_mad_builtin_vector_size_mismatch(float3 p0, float2 p1) { 48 float3 test_builtin_mad_float3_splat(float p0, float3 p1) { 63 float3 test_mad_float3_int_splat(float3 p0, int p1) {
|
H A D | clamp-errors.hlsl | 23 float2 test_clamp_vector_size_mismatch(float3 p0, float2 p1) { 25 …// expected-warning@-1 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') t… 28 float2 test_clamp_builtin_vector_size_mismatch(float3 p0, float2 p1) { 48 float3 test_builtin_clamp_float3_splat(float p0, float3 p1) { 63 float3 test_clamp_float3_int_splat(float3 p0, int p1) {
|
H A D | lerp-errors.hlsl | 23 float2 test_lerp_vector_trunc_warn1(float3 p0) { 25 // expected-warning@-1 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') to 'vector<float, 2>' (vector of 2 'float' values)}} 28 float2 test_lerp_vector_trunc_warn2(float3 p0, float2 p1) { 30 // expected-warning@-1 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') to 'vector<float, 2>' (vector of 2 'float' values)}} 31 // expected-warning@-2 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') to 'vector<float, 2>' (vector of 2 'float' values)}} 34 float2 test_lerp_vector_trunc_warn3(float3 p0, float2 p1) { 36 // expected-warning@-1 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') to 'vector<float, 2>' (vector of 2 'float' values)}} 37 // expected-warning@-2 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') to 'vector<float, 2>' (vector of 2 'float' values)}} 40 float2 test_lerp_builtin_vector_size_mismatch_Arg1(float3 p0, float2 p1) { 45 float2 test_lerp_builtin_vector_size_mismatch_Arg2(float3 p [all...] |
H A D | dot-errors.hlsl | 18 float test_dot_vector_size_mismatch(float3 p0, float2 p1) { 20 …// expected-warning@-1 {{implicit conversion truncates vector: 'float3' (aka 'vector<float, 3>') t… 23 float test_dot_builtin_vector_size_mismatch(float3 p0, float2 p1) { 82 float test_builtin_dot_float3_splat(float p0, float3 p1) { 97 float test_dot_float3_int_splat(float3 p0, int p1) {
|
H A D | RWBuffers.hlsl | 3 typedef vector<float, 3> float3; 17 RWBuffer<float3> Buffer;
|
/llvm-project/clang/test/Parser/ |
H A D | opencl-astype.cl | 9 typedef __attribute__(( ext_vector_type(3) )) float float3; 16 // Verify int4->float3, float3->int4 works. 18 float3 f3 = __builtin_astype(i4, float3);
|
/llvm-project/clang/test/Sema/ |
H A D | ext_vector_components.c | 4 typedef __attribute__(( ext_vector_type(3) )) float float3; typedef 12 float3 vec3; in test() 71 float2 lo(float3 x) { return x.lo; } in lo() 72 float2 hi(float3 x) { return x.hi; } in hi() 73 float2 ev(float3 x) { return x.even; } in ev() 74 float2 od(float3 x) { return x.odd; } in od()
|
H A D | vector-init.c | 33 typedef float __attribute__((ext_vector_type (3))) float3; typedef 34 int test2[sizeof(float3) == sizeof(float4) ? 1 : -1];
|
/llvm-project/clang/test/AST/HLSL/ |
H A D | vector-constructors.hlsl | 5 typedef float float3 __attribute__((ext_vector_type(3))); 10 float3 Vec3 = float3(Vec2, 3.0); 11 float3 Vec3b = float3(1.0, 2.0, 3.0); 25 // CHECK-LABEL: VarDecl 0x{{[0-9a-fA-F]+}} {{.*}} col:10 Vec3 'float3':'vector<float, 3>' cinit 26 // CHECK-NEXT: CXXFunctionalCastExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float3':'vector<float, 3>' functional cast to float3 <NoOp> 27 // CHECK-NEXT: InitListExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float3':'vector<float, 3>' 38 // CHECK: VarDecl 0x{{[0-9a-fA-F]+}} {{.*}} col:10 Vec3b 'float3' [all...] |
/llvm-project/clang/test/CodeGenOpenCL/ |
H A D | preserve_vec3.cl | 8 typedef float float3 __attribute__((ext_vector_type(3))); 19 void kernel foo(global float3 *a, global float3 *b) { 31 void kernel float4_to_float3(global float3 *a, global float4 *b) { 32 *a = __builtin_astype(*b, float3); 43 void kernel float3_to_float4(global float3 *a, global float4 *b) { 55 void kernel float3_to_double2(global float3 *a, global double2 *b) { 120 // CHECK: [[META5]] = !{!"float3*", !"float3*"} 126 // CHECK: [[META11]] = !{!"float3*", !"float [all...] |
/llvm-project/libclc/generic/include/clc/geometric/ |
H A D | cross.h | 1 _CLC_OVERLOAD _CLC_DECL float3 cross(float3 p0, float3 p1);
|
/llvm-project/libclc/generic/lib/geometric/ |
H A D | cross.cl | 3 _CLC_OVERLOAD _CLC_DEF float3 cross(float3 p0, float3 p1) { 4 return (float3)(p0.y*p1.z - p0.z*p1.y, p0.z*p1.x - p0.x*p1.z,
|
H A D | normalize.cl | 49 _CLC_OVERLOAD _CLC_DEF float3 normalize(float3 p) { 50 if (all(p == (float3)0.0F)) 62 p = copysign(select((float3)0.0F, (float3)1.0F, isinf(p)), p);
|
/llvm-project/libclc/generic/include/math/ |
H A D | ternary_intrin.inc | 3 _CLC_OVERLOAD float3 __CLC_FUNCTION(float3, float3, float3) __asm(__CLC_INTRINSIC ".v3f32");
|
H A D | binary_intrin.inc | 3 _CLC_OVERLOAD float3 __CLC_FUNCTION(float3, float3) __asm(__CLC_INTRINSIC ".v3f32");
|
/llvm-project/llvm/test/CodeGen/NVPTX/ |
H A D | b52037.ll | 18 %float3 = type { float, float, float } 24 %struct.foo = type <{ ptr, %float4, %int3, i32, %float3, [4 x i8], i64, i32, i8, [3 x i8], i32 }> 34 declare %float3 @bar_2(float, float) local_unnamed_addr 36 declare %float3 @zot() local_unnamed_addr 86 %tmp13.i.i.peel = tail call %float3 @zot() #1 87 %tmp15.i.i.peel = extractvalue %float3 %tmp13.i.i.peel, 0 89 %tmp17.i.i.peel = extractvalue %float3 %tmp13.i.i.peel, 2 91 %tmp28.i.i.peel = tail call %float3 @bar_2(float %tmp22.i.i.peel, float %tmp27.i.i.peel) #1 92 %tmp28.i.elt.i.peel = extractvalue %float3 %tmp28.i.i.peel, 0 94 %tmp28.i.elt2.i.peel = extractvalue %float3 [all...] |
H A D | bug22322.ll | 7 %class.float3 = type { float, float, float } 30 %11 = getelementptr inbounds %class.float3, ptr %dst, i64 %5, i32 0 32 %12 = getelementptr inbounds %class.float3, ptr %dst, i64 %5, i32 1 34 %13 = getelementptr inbounds %class.float3, ptr %dst, i64 %5, i32 2
|
/llvm-project/clang/lib/Headers/ |
H A D | opencl-c.h | 1656 char3 __ovld __cnfn convert_char3_rte(float3); 1657 char3 __ovld __cnfn convert_char3_sat_rte(float3); 1658 char3 __ovld __cnfn convert_char3_rtz(float3); 1659 char3 __ovld __cnfn convert_char3_sat_rtz(float3); 1660 char3 __ovld __cnfn convert_char3_rtp(float3); 1661 char3 __ovld __cnfn convert_char3_sat_rtp(float3); 1662 char3 __ovld __cnfn convert_char3_rtn(float3); 1663 char3 __ovld __cnfn convert_char3_sat_rtn(float3); 1664 char3 __ovld __cnfn convert_char3(float3); 1665 char3 __ovld __cnfn convert_char3_sat(float3); [all …]
|
/llvm-project/clang/test/CodeGenHLSL/ |
H A D | float3.hlsl | 5 // Make sure float3 is not changed into float4. 11 float3 foo(float3 a) {
|
/llvm-project/clang/test/Index/ |
H A D | usrs.cpp | 98 typedef __attribute__((__ext_vector_type__(3))) float float3; typedef 102 float3 vectorOverload(float3 f);
|
/llvm-project/lldb/test/API/functionalities/data-formatter/vector-types/ |
H A D | main.cpp | 3 typedef float float3 __attribute__((ext_vector_type(3))); typedef 8 float3 f3 = f4.gba; in main()
|