u8 242 src/CodeGen_Hexagon.cpp Type u8 = UInt(8); u8 250 src/CodeGen_Hexagon.cpp Type u8v1 = u8.with_lanes(native_vector_bits() / 8); u8 430 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_vmpyub), u16v2, "mpy.vub.ub", {u8v1, u8}, HvxIntrinsic::BroadcastScalarsToWords }, u8 435 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_vmpyub_acc), u16v2, "add_mpy.vuh.vub.ub", {u16v2, u8v1, u8}, HvxIntrinsic::BroadcastScalarsToWords }, u8 547 src/CodeGen_Hexagon.cpp { IPICK(is_128B, Intrinsic::hexagon_V6_lvsplatb), u8v1, "splat_v62.b", {u8} }, // v62 u8 68 src/CodeGen_PowerPC.cpp u8(max(wild_i16x_ - wild_i16x_, 0))}, u8 88 src/CodeGen_PowerPC.cpp u8(((wild_u16x_ + wild_u16x_) + 1) / 2)}, u8 229 src/CodeGen_X86.cpp u8(max(wild_i16x_ - wild_i16x_, 0))}, u8 250 src/CodeGen_X86.cpp u8(((wild_u16x_ + wild_u16x_) + 1) / 2)}, u8 54 src/ConciseCasts.h inline Expr u8(Expr e) { u8 724 src/HexagonOptimize.cpp { "halide.hexagon.avg.vub.vub", u8((wild_u16x + wild_u16x)/2), Pattern::NarrowOps }, u8 729 src/HexagonOptimize.cpp { "halide.hexagon.avg_rnd.vub.vub", u8((wild_u16x + wild_u16x + 1)/2), Pattern::NarrowOps }, u8 795 src/HexagonOptimize.cpp { "halide.hexagon.packhi.vh", u8(wild_u16x/256) }, u8 796 src/HexagonOptimize.cpp { "halide.hexagon.packhi.vh", u8(wild_i16x/256) }, u8 809 src/HexagonOptimize.cpp { "halide.hexagon.pack.vh", u8(wild_u16x) }, u8 810 src/HexagonOptimize.cpp { "halide.hexagon.pack.vh", u8(wild_i16x) }, u8 842 src/HexagonOptimize.cpp { u8(wild_u32x), u8(u16(wild_u32x)) }, u8 843 src/HexagonOptimize.cpp { u8(wild_i32x), u8(i16(wild_i32x)) }, u8 1175 src/runtime/HalideRuntime.h uint8_t u8; u8 29 test/correctness/gameoflife.cpp output(x, y) = select(livingNeighbors == 3 || (alive && livingNeighbors == 2), u8(1), u8(0)); u8 101 test/correctness/gameoflife.cpp Expr alive = life(t.x, t.y, lastT) != u8(0); u8 106 test/correctness/gameoflife.cpp life(t.x, t.y, t.z%2) = select(livingNeighbors == 3 || (alive && livingNeighbors == 2), u8(1), u8(0)); u8 29 test/correctness/logical.cpp u8(255), u8(0)); u8 62 test/correctness/logical.cpp u8(255), u8(0)); u8 122 test/correctness/logical.cpp f(x, y) = select(input(x, y) > ten, u8(255), u8(0)); u8 243 test/correctness/saturating_casts.cpp test_concise<source_t, uint8_t>(u8, false); u8 313 test/correctness/simd_op_check.cpp check("paddusb", 8*w, u8(min(u16(u8_1) + u16(u8_2), max_u8))); u8 314 test/correctness/simd_op_check.cpp check("psubusb", 8*w, u8(max(i16(u8_1) - i16(u8_2), 0))); u8 335 test/correctness/simd_op_check.cpp check("pcmp*b", 8*w, select(u8_1 == u8_2, u8(1), u8(2))); u8 336 test/correctness/simd_op_check.cpp check("pcmp*b", 8*w, select(u8_1 > u8_2, u8(1), u8(2))); u8 362 test/correctness/simd_op_check.cpp check("pavgb", 8*w, u8((u16(u8_1) + u16(u8_2) + 1)/2)); u8 363 test/correctness/simd_op_check.cpp check("pavgb", 8*w, u8((u16(u8_1) + u16(u8_2) + 1)>>1)); u8 569 test/correctness/simd_op_check.cpp check("vpaddusb", 32, u8(min(u16(u8_1) + u16(u8_2), max_u8))); u8 570 test/correctness/simd_op_check.cpp check("vpsubusb", 32, u8(max(i16(u8_1) - i16(u8_2), 0))); u8 583 test/correctness/simd_op_check.cpp check("vpcmp*b" YMM, 32, select(u8_1 == u8_2, u8(1), u8(2))); u8 584 test/correctness/simd_op_check.cpp check("vpcmp*b" YMM, 32, select(u8_1 > u8_2, u8(1), u8(2))); u8 590 test/correctness/simd_op_check.cpp check("vpavgb", 32, u8((u16(u8_1) + u16(u8_2) + 1)/2)); u8 710 test/correctness/simd_op_check.cpp check(arm32 ? "vabd.s8" : "sabd", 8*w, u8(abs(i16(i8_2) - i8_3))); u8 711 test/correctness/simd_op_check.cpp check(arm32 ? "vabd.u8" : "uabd", 8*w, u8(abs(i16(u8_2) - u8_3))); u8 757 test/correctness/simd_op_check.cpp check(arm32 ? "vaddhn.i16" : "addhn", 8*w, u8((u16_1 + u16_2)/256)); u8 792 test/correctness/simd_op_check.cpp check(arm32 ? "vceq.i8" : "cmeq", 8*w, select(u8_1 == u8_2, u8(1), u8(2))); u8 804 test/correctness/simd_op_check.cpp check("vcge.u8", 16, select(u8_1 >= u8_2, u8(1), u8(2))); u8 811 test/correctness/simd_op_check.cpp check("vcge.u8", 8, select(u8_1 >= u8_2, u8(1), u8(2))); u8 821 test/correctness/simd_op_check.cpp check(arm32 ? "vcgt.u8" : "cmhi", 8*w, select(u8_1 > u8_2, u8(1), u8(2))); u8 848 test/correctness/simd_op_check.cpp check(arm32 ? "vdup.8" : "dup", 16*w, u8(y)); u8 869 test/correctness/simd_op_check.cpp check(arm32 ? "vhadd.u8" : "uhadd", 8*w, u8((u16(u8_1) + u16(u8_2))/2)); u8 881 test/correctness/simd_op_check.cpp check(arm32 ? "vhsub.u8" : "uhsub", 8*w, u8((u16(u8_1) - u16(u8_2))/2)); u8 1009 test/correctness/simd_op_check.cpp check(arm32 ? "vmovn.i16" : "xtn", 8*w, u8(u16_1)); u8 1104 test/correctness/simd_op_check.cpp check(arm32 ? "vqadd.u8" : "uqadd", 8*w, u8(min(u16(u8_1) + u16(u8_2), max_u8))); u8 1108 test/correctness/simd_op_check.cpp check(arm32 ? "vqadd.u8" : "uqadd", 8*w, u8(min(u16(u8_1) + 17, max_u8))); u8 1123 test/correctness/simd_op_check.cpp check(arm32 ? "vqmovn.u16" : "uqxtn", 8*w, u8(min(u16_1, max_u8))); u8 1153 test/correctness/simd_op_check.cpp check(arm32 ? "vqshl.u8" : "uqshl", 8*w, u8(min(u16(u8_1 )*16, max_u8))); u8 1171 test/correctness/simd_op_check.cpp check(arm32 ? "vqshrn.u16" : "uqshrn", 8*w, u8(min(u16_1/16, max_u8))); u8 1189 test/correctness/simd_op_check.cpp check("vraddhn.i16", 8, u8((u16_1 + u16_2 + 128)/256)); u8 1210 test/correctness/simd_op_check.cpp check(arm32 ? "vrhadd.u8" : "urhadd", 8*w, u8((u16(u8_1 ) + u16(u8_2 ) + 1)/2)); u8 1263 test/correctness/simd_op_check.cpp check(arm32 ? "vshrn.i16" : "shrn", 8*w, u8(u16_1/256)); u8 1267 test/correctness/simd_op_check.cpp check(arm32 ? "vshrn.i16" : "shrn", 8*w, u8(u16_1/16)); u8 1305 test/correctness/simd_op_check.cpp check(arm32 ? "vsubhn.i16" : "subhn", 8*w, u8((u16_1 - u16_2)/256)); u8 1553 test/correctness/simd_op_check.cpp check("vavg(v*.ub,v*.ub)", hvx_width/1, u8((u16(u8_1) + u16(u8_2))/2)); u8 1554 test/correctness/simd_op_check.cpp check("vavg(v*.ub,v*.ub):rnd", hvx_width/1, u8((u16(u8_1) + u16(u8_2) + 1)/2)); u8 1586 test/correctness/simd_op_check.cpp check("vlsr(v*.uh,r*)", hvx_width/1, u8_1 >> (u8(y) % 8)); u8 1592 test/correctness/simd_op_check.cpp check("vasl(v*.h,r*)", hvx_width/1, u8_1 << (u8(y) % 8)); u8 1599 test/correctness/simd_op_check.cpp check("vpacke(v*.h,v*.h)", hvx_width/1, u8(u16_1)); u8 1600 test/correctness/simd_op_check.cpp check("vpacke(v*.h,v*.h)", hvx_width/1, u8(i16_1)); u8 1608 test/correctness/simd_op_check.cpp check("vpacko(v*.h,v*.h)", hvx_width/1, u8(u16_1 >> 8)); u8 1609 test/correctness/simd_op_check.cpp check("vpacko(v*.h,v*.h)", hvx_width/1, u8(i16_1 >> 8)); u8 1623 test/correctness/simd_op_check.cpp check("vshuffe(v*.b,v*.b)", hvx_width/1, u8(u16(u8_1) * 127)); u8 1624 test/correctness/simd_op_check.cpp check("vshuffe(v*.b,v*.b)", hvx_width/1, u8(i16(i8_1) * 63)); u8 1632 test/correctness/simd_op_check.cpp check("vshuffo(v*.b,v*.b)", hvx_width/1, u8((u16(u8_1) * 127) >> 8)); u8 1633 test/correctness/simd_op_check.cpp check("vshuffo(v*.b,v*.b)", hvx_width/1, u8((i16(i8_1) * 63) >> 8)); u8 1693 test/correctness/simd_op_check.cpp check("vshuff(v*,v*,r*)", hvx_width*2, select((x%2) == 0, u8(x/2), u8(x/2))); u8 1962 test/correctness/simd_op_check.cpp check("vaddubs", 16*w, u8(min(u16( u8_1) + u16( u8_2), max_u8))); u8 1973 test/correctness/simd_op_check.cpp check("vsububs", 16*w, u8(max(i16( u8_1) - i16( u8_2), 0))); u8 1979 test/correctness/simd_op_check.cpp check("vavgub", 16*w, u8((u16( u8_1) + u16( u8_2) + 1)/2)); u8 62 test/generator/metadata_tester_aottest.cpp return e.u.u8 == a.u.u8; u8 212 test/generator/metadata_tester_aottest.cpp s->u.u8 = v; u8 20 test/generator/metadata_tester_generator.cpp Input<uint8_t> u8{ "u8", 80, 8, 255 }; u8 99 tutorial/lesson_14_types.cpp Expr u8 = cast<uint8_t>(x); u8 126 tutorial/lesson_14_types.cpp assert((u8 + f32).type() == Float(32)); u8 152 tutorial/lesson_14_types.cpp assert((u32 + u8).type() == UInt(32)); u8 158 tutorial/lesson_14_types.cpp assert((u8 + s32).type() == Int(32));