tint->dawn: Shuffle source tree in preperation of merging repos

docs/    -> docs/tint/
fuzzers/ -> src/tint/fuzzers/
samples/ -> src/tint/cmd/
src/     -> src/tint/
test/    -> test/tint/

BUG=tint:1418,tint:1433

Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
Ryan Harrison
2022-02-21 15:19:07 +00:00
committed by Tint LUCI CQ
parent 38f1e9c75c
commit dbc13af287
12231 changed files with 4897 additions and 4871 deletions

View File

@@ -0,0 +1,127 @@
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 320
OpName %main "main"
OpName %func_ "func("
OpName %_GLF_global_loop_count "_GLF_global_loop_count"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %a "a"
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_3 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%11 = OpTypeFunction %void
%int = OpTypeInt 32 1
%13 = OpTypeFunction %int
%_ptr_Private_int = OpTypePointer Private %int
%_GLF_global_loop_count = OpVariable %_ptr_Private_int Private
%int_0 = OpConstant %int 0
%int_100 = OpConstant %int 100
%bool = OpTypeBool
%int_1 = OpConstant %int 1
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%_arr_int_uint_3 = OpTypeArray %int %uint_3
%buf0 = OpTypeStruct %_arr_int_uint_3
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_2 = OpConstant %int 2
%false = OpConstantFalse %bool
%true = OpConstantTrue %bool
%_ptr_Function_int = OpTypePointer Function %int
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %11
%30 = OpLabel
%a = OpVariable %_ptr_Function_int Function
OpStore %_GLF_global_loop_count %int_0
OpBranch %31
%31 = OpLabel
OpLoopMerge %32 %33 None
OpBranch %34
%34 = OpLabel
%35 = OpLoad %int %_GLF_global_loop_count
%36 = OpIAdd %int %35 %int_1
OpStore %_GLF_global_loop_count %36
OpSelectionMerge %37 None
OpBranchConditional %false %38 %37
%38 = OpLabel
OpReturn
%37 = OpLabel
OpBranch %33
%33 = OpLabel
%39 = OpLoad %int %_GLF_global_loop_count
%40 = OpSLessThan %bool %39 %int_100
%41 = OpLogicalAnd %bool %true %40
OpBranchConditional %41 %31 %32
%32 = OpLabel
%42 = OpFunctionCall %int %func_
OpStore %a %42
%43 = OpLoad %int %a
%44 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%45 = OpLoad %int %44
%46 = OpIEqual %bool %43 %45
OpSelectionMerge %47 None
OpBranchConditional %46 %48 %49
%48 = OpLabel
%50 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%51 = OpLoad %int %50
%52 = OpConvertSToF %float %51
%53 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%54 = OpLoad %int %53
%55 = OpConvertSToF %float %54
%56 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%57 = OpLoad %int %56
%58 = OpConvertSToF %float %57
%59 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%60 = OpLoad %int %59
%61 = OpConvertSToF %float %60
%62 = OpCompositeConstruct %v4float %52 %55 %58 %61
OpStore %_GLF_color %62
OpBranch %47
%49 = OpLabel
%63 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%64 = OpLoad %int %63
%65 = OpConvertSToF %float %64
%66 = OpCompositeConstruct %v4float %65 %65 %65 %65
OpStore %_GLF_color %66
OpBranch %47
%47 = OpLabel
OpReturn
OpFunctionEnd
%func_ = OpFunction %int None %13
%67 = OpLabel
OpBranch %68
%68 = OpLabel
OpLoopMerge %69 %70 None
OpBranch %71
%71 = OpLabel
%72 = OpLoad %int %_GLF_global_loop_count
%73 = OpSLessThan %bool %72 %int_100
OpBranchConditional %73 %74 %69
%74 = OpLabel
%75 = OpLoad %int %_GLF_global_loop_count
%76 = OpIAdd %int %75 %int_1
OpStore %_GLF_global_loop_count %76
%77 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%78 = OpLoad %int %77
OpReturnValue %78
%70 = OpLabel
OpBranch %68
%69 = OpLabel
%79 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%80 = OpLoad %int %79
OpReturnValue %80
OpFunctionEnd

View File

@@ -0,0 +1,74 @@
type Arr = @stride(16) array<i32, 3>;
struct buf0 {
x_GLF_uniform_int_values : Arr;
};
var<private> x_GLF_global_loop_count : i32;
@group(0) @binding(0) var<uniform> x_7 : buf0;
var<private> x_GLF_color : vec4<f32>;
fn func_() -> i32 {
loop {
let x_72 : i32 = x_GLF_global_loop_count;
if ((x_72 < 100)) {
} else {
break;
}
let x_75 : i32 = x_GLF_global_loop_count;
x_GLF_global_loop_count = (x_75 + 1);
let x_78 : i32 = x_7.x_GLF_uniform_int_values[0];
return x_78;
}
let x_80 : i32 = x_7.x_GLF_uniform_int_values[2];
return x_80;
}
fn main_1() {
var a : i32;
x_GLF_global_loop_count = 0;
loop {
let x_35 : i32 = x_GLF_global_loop_count;
x_GLF_global_loop_count = (x_35 + 1);
if (false) {
return;
}
continuing {
let x_39 : i32 = x_GLF_global_loop_count;
if ((true && (x_39 < 100))) {
} else {
break;
}
}
}
let x_42 : i32 = func_();
a = x_42;
let x_43 : i32 = a;
let x_45 : i32 = x_7.x_GLF_uniform_int_values[2];
if ((x_43 == x_45)) {
let x_51 : i32 = x_7.x_GLF_uniform_int_values[0];
let x_54 : i32 = x_7.x_GLF_uniform_int_values[1];
let x_57 : i32 = x_7.x_GLF_uniform_int_values[1];
let x_60 : i32 = x_7.x_GLF_uniform_int_values[0];
x_GLF_color = vec4<f32>(f32(x_51), f32(x_54), f32(x_57), f32(x_60));
} else {
let x_64 : i32 = x_7.x_GLF_uniform_int_values[1];
let x_65 : f32 = f32(x_64);
x_GLF_color = vec4<f32>(x_65, x_65, x_65, x_65);
}
return;
}
struct main_out {
@location(0)
x_GLF_color_1 : vec4<f32>;
};
@stage(fragment)
fn main() -> main_out {
main_1();
return main_out(x_GLF_color);
}