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,133 @@
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %highSigned "highSigned"
OpName %highUnsigned "highUnsigned"
OpName %i "i"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "zero"
OpName %_ ""
OpName %data "data"
OpName %i_0 "i"
OpName %_GLF_color "_GLF_color"
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%12 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%int_1 = OpConstant %int 1
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_2 = OpConstant %uint 2
%int_0 = OpConstant %int 0
%int_10 = OpConstant %int 10
%buf0 = OpTypeStruct %int
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%bool = OpTypeBool
%_arr_int_uint_2 = OpTypeArray %int %uint_2
%_ptr_Function__arr_int_uint_2 = OpTypePointer Function %_arr_int_uint_2
%int_5 = OpConstant %int 5
%uint_1 = OpConstant %uint 1
%uint_10 = OpConstant %uint 10
%int_6 = OpConstant %int 6
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%35 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
%36 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
%main = OpFunction %void None %12
%37 = OpLabel
%highSigned = OpVariable %_ptr_Function_int Function
%highUnsigned = OpVariable %_ptr_Function_uint Function
%i = OpVariable %_ptr_Function_int Function
%data = OpVariable %_ptr_Function__arr_int_uint_2 Function
%i_0 = OpVariable %_ptr_Function_uint Function
OpStore %highSigned %int_1
OpStore %highUnsigned %uint_2
OpStore %i %int_0
OpBranch %38
%38 = OpLabel
OpLoopMerge %39 %40 None
OpBranch %41
%41 = OpLabel
%42 = OpLoad %int %i
%43 = OpLoad %int %highSigned
%44 = OpExtInst %int %1 SMin %int_10 %43
%45 = OpAccessChain %_ptr_Uniform_int %_ %int_0
%46 = OpLoad %int %45
%47 = OpIAdd %int %44 %46
%48 = OpSLessThan %bool %42 %47
OpBranchConditional %48 %49 %39
%49 = OpLabel
%50 = OpLoad %int %i
%51 = OpAccessChain %_ptr_Function_int %data %50
OpStore %51 %int_5
OpBranch %40
%40 = OpLabel
%52 = OpLoad %int %i
%53 = OpIAdd %int %52 %int_1
OpStore %i %53
OpBranch %38
%39 = OpLabel
OpStore %i_0 %uint_1
OpBranch %54
%54 = OpLabel
OpLoopMerge %55 %56 None
OpBranch %57
%57 = OpLabel
%58 = OpLoad %uint %i_0
%59 = OpLoad %uint %highUnsigned
%60 = OpExtInst %uint %1 UMin %uint_10 %59
%61 = OpAccessChain %_ptr_Uniform_int %_ %int_0
%62 = OpLoad %int %61
%63 = OpBitcast %uint %62
%64 = OpIAdd %uint %60 %63
%65 = OpULessThan %bool %58 %64
OpBranchConditional %65 %66 %55
%66 = OpLabel
%67 = OpLoad %uint %i_0
%68 = OpAccessChain %_ptr_Function_int %data %67
OpStore %68 %int_6
OpBranch %56
%56 = OpLabel
%69 = OpLoad %uint %i_0
%70 = OpIAdd %uint %69 %int_1
OpStore %i_0 %70
OpBranch %54
%55 = OpLabel
%71 = OpAccessChain %_ptr_Function_int %data %int_0
%72 = OpLoad %int %71
%73 = OpIEqual %bool %72 %int_5
OpSelectionMerge %74 None
OpBranchConditional %73 %75 %74
%75 = OpLabel
%76 = OpAccessChain %_ptr_Function_int %data %int_1
%77 = OpLoad %int %76
%78 = OpIEqual %bool %77 %int_6
OpBranch %74
%74 = OpLabel
%79 = OpPhi %bool %73 %55 %78 %75
OpSelectionMerge %80 None
OpBranchConditional %79 %81 %82
%81 = OpLabel
OpStore %_GLF_color %35
OpBranch %80
%82 = OpLabel
OpStore %_GLF_color %36
OpBranch %80
%80 = OpLabel
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,79 @@
struct buf0 {
zero : i32;
};
@group(0) @binding(0) var<uniform> x_8 : buf0;
var<private> x_GLF_color : vec4<f32>;
fn main_1() {
var highSigned : i32;
var highUnsigned : u32;
var i : i32;
var data : array<i32, 2>;
var i_1 : u32;
var x_78 : bool;
var x_79_phi : bool;
highSigned = 1;
highUnsigned = 2u;
i = 0;
loop {
let x_42 : i32 = i;
let x_43 : i32 = highSigned;
let x_46 : i32 = x_8.zero;
if ((x_42 < (min(10, x_43) + x_46))) {
} else {
break;
}
let x_50 : i32 = i;
data[x_50] = 5;
continuing {
let x_52 : i32 = i;
i = (x_52 + 1);
}
}
i_1 = 1u;
loop {
let x_58 : u32 = i_1;
let x_59 : u32 = highUnsigned;
let x_62 : i32 = x_8.zero;
if ((x_58 < (min(10u, x_59) + bitcast<u32>(x_62)))) {
} else {
break;
}
let x_67 : u32 = i_1;
data[x_67] = 6;
continuing {
let x_69 : u32 = i_1;
i_1 = (x_69 + bitcast<u32>(1));
}
}
let x_72 : i32 = data[0];
let x_73 : bool = (x_72 == 5);
x_79_phi = x_73;
if (x_73) {
let x_77 : i32 = data[1];
x_78 = (x_77 == 6);
x_79_phi = x_78;
}
let x_79 : bool = x_79_phi;
if (x_79) {
x_GLF_color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
} else {
x_GLF_color = vec4<f32>(0.0, 0.0, 0.0, 0.0);
}
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);
}