make_const 230 src/AddImageChecks.cpp type_code, make_const(UInt(8), (int)type.code()), make_const 231 src/AddImageChecks.cpp type_bits, make_const(UInt(8), type.bits()), make_const 232 src/AddImageChecks.cpp type_lanes, make_const(UInt(16), type.lanes())}, make_const 318 src/AddImageChecks.cpp Expr max_size = make_const(UInt(64), t.maximum_buffer_size()); make_const 319 src/AddImageChecks.cpp Expr max_extent = make_const(UInt(64), 0x7fffffff); make_const 113 src/AssociativeOpsTable.cpp Expr zero = make_const(t, 0); \ make_const 114 src/AssociativeOpsTable.cpp Expr one = make_const(t, 1); \ make_const 115 src/AssociativeOpsTable.cpp Expr neg_one = make_const(t, -1); \ make_const 238 src/Associativity.cpp assoc_op.pattern.identities[0] = make_const(t, 0); make_const 536 src/Associativity.cpp check_associativity("f", {x_idx}, {Cast::make(UInt(8), min(Cast::make(UInt(16), y + f_call_0), make_const(t, 255)))}, make_const 538 src/Associativity.cpp AssociativePattern(Cast::make(UInt(8), min(Cast::make(UInt(16), x + y), make_const(t, 255))), make_const(t, 0), true), make_const 545 src/Associativity.cpp check_associativity("f", {x_idx}, {Cast::make(UInt(8), min(Cast::make(UInt(16), y + f_call_0), Cast::make(UInt(16), make_const(t, 255))))}, make_const 547 src/Associativity.cpp AssociativePattern(Cast::make(UInt(8), min(Cast::make(UInt(16), x + y), make_const(t, 255))), make_const(t, 0), true), make_const 554 src/Associativity.cpp check_associativity("f", {x_idx}, {select(f_call_0 > make_const(t, 255) - y, make_const(t, 255), y)}, make_const 556 src/Associativity.cpp AssociativePattern(select(x > make_const(t, 255) - y, make_const(t, 255), y), make_const(t, 0), true), make_const 563 src/Associativity.cpp check_associativity("f", {x_idx}, {select(f_call_0 >= -y, make_const(t, 255), y)}, make_const 565 src/Associativity.cpp AssociativePattern(select(x < -y, y, make_const(t, 255)), make_const(t, 0), true), make_const 630 src/Associativity.cpp AssociativePattern(x + y, make_const(t, 0), true), make_const 648 src/Associativity.cpp AssociativePattern({ys[0], ys[1], xs[2] + ys[2]}, {make_const(t, 0), make_const(t, 0), make_const(t, 0)}, true), make_const 659 src/Associativity.cpp {t.max(), make_const(t, 1), make_const(t, 0)}, make_const 681 src/Associativity.cpp AssociativePattern(y, make_const(t, 0), true), make_const 704 src/Associativity.cpp {make_const(t, 1), make_const(t, 0)}, make_const 716 src/Associativity.cpp {t.max(), make_const(t, 0)}, make_const 753 src/Associativity.cpp {t.max(), make_const(t, 0), make_const(t, 0), make_const(t, 0)}, make_const 567 src/Bounds.cpp scope.push(var_name, Interval(make_const(var.type(), 0), make_const 568 src/Bounds.cpp make_const(var.type(), op->lanes-1))); make_const 1495 src/Bounds.cpp make_const(Int(8), -128), make_const(Int(8), 127)); make_const 1498 src/Bounds.cpp check(scope, cast<uint16_t>(x / 2), make_const(UInt(16), 0), make_const(UInt(16), 5)); make_const 1499 src/Bounds.cpp check(scope, cast<uint16_t>((x + 10) / 2), make_const(UInt(16), 5), make_const(UInt(16), 10)); make_const 1519 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+250), make_const(UInt(8), 0), make_const(UInt(8), 255)); make_const 1520 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+10)*20, make_const(UInt(8), 0), make_const(UInt(8), 255)); make_const 1521 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+10)*(cast<uint8_t>(x)+5), make_const(UInt(8), 0), make_const(UInt(8), 255)); make_const 1522 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+10)-(cast<uint8_t>(x)+5), make_const(UInt(8), 0), make_const(UInt(8), 255)); make_const 1525 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+240), make_const(UInt(8), 240), make_const(UInt(8), 250)); make_const 1526 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+10)*10, make_const(UInt(8), 100), make_const(UInt(8), 200)); make_const 1527 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+10)*(cast<uint8_t>(x)), make_const(UInt(8), 0), make_const(UInt(8), 200)); make_const 1528 src/Bounds.cpp check(scope, (cast<uint8_t>(x)+20)-(cast<uint8_t>(x)+5), make_const(UInt(8), 5), make_const(UInt(8), 25)); make_const 1532 src/Bounds.cpp make_const(UInt(16), 0), make_const(UInt(16), 4095)); make_const 1536 src/Bounds.cpp make_const(UInt(8), 0), make_const(UInt(8), 128)); make_const 1541 src/Bounds.cpp make_const(UInt(16), 0), make_const(UInt(16), 255*2)); make_const 1164 src/CodeGen_Hexagon.cpp Value *minus_one = codegen(make_const(UInt(16, indices.size()), -1)); make_const 1252 src/CodeGen_LLVM.cpp Expr sign = num >> make_const(op->type, op->type.bits() - 1); make_const 1260 src/CodeGen_LLVM.cpp Expr mult = make_const(num.type(), multiplier); make_const 1293 src/CodeGen_LLVM.cpp Expr mult = make_const(num.type(), multiplier); make_const 1302 src/CodeGen_LLVM.cpp val = val >> make_const(op->type, shift); make_const 31 src/CodeGen_Posix.cpp Expr total_size = make_const(UInt(64), type.lanes() * type.bytes()); make_const 42 src/CodeGen_Posix.cpp Expr low_mask = make_const(UInt(64), (uint64_t)(0xffffffff)); make_const 60 src/CodeGen_Posix.cpp Expr max_size = make_const(UInt(64), target.maximum_buffer_size()); make_const 422 src/Generator.h operator Expr() const { return make_const(type_of<T>(), this->value()); } make_const 257 src/IROperator.cpp return Broadcast::make(make_const(t.element_of(), val), t.lanes()); make_const 285 src/IROperator.cpp return make_const(UInt(1, w), val); make_const 292 src/IROperator.cpp return make_const(t, 0); make_const 297 src/IROperator.cpp return make_const(t, 1); make_const 301 src/IROperator.cpp return make_const(t, 2); make_const 339 src/IROperator.cpp return make_const(t, i->value); make_const 347 src/IROperator.cpp return make_const(t, i->value); make_const 355 src/IROperator.cpp return make_const(t, f->value); make_const 374 src/IROperator.cpp << ", which changes its value to " << make_const(dst, x) make_const 438 src/IROperator.cpp Expr non_exponent_mask = make_const(int_type, 0x807fffff); make_const 695 src/IROperator.cpp make_const(UInt(64), halide_buffer_flag_host_dirty), make_const 700 src/IROperator.cpp make_const(UInt(64), halide_buffer_flag_device_dirty), make_const 81 src/IROperator.h EXPORT Expr make_const(Type t, int64_t val); make_const 82 src/IROperator.h EXPORT Expr make_const(Type t, uint64_t val); make_const 83 src/IROperator.h EXPORT Expr make_const(Type t, double val); make_const 84 src/IROperator.h inline Expr make_const(Type t, int32_t val) {return make_const(t, (int64_t)val);} make_const 85 src/IROperator.h inline Expr make_const(Type t, uint32_t val) {return make_const(t, (uint64_t)val);} make_const 86 src/IROperator.h inline Expr make_const(Type t, int16_t val) {return make_const(t, (int64_t)val);} make_const 87 src/IROperator.h inline Expr make_const(Type t, uint16_t val) {return make_const(t, (uint64_t)val);} make_const 88 src/IROperator.h inline Expr make_const(Type t, int8_t val) {return make_const(t, (int64_t)val);} make_const 89 src/IROperator.h inline Expr make_const(Type t, uint8_t val) {return make_const(t, (uint64_t)val);} make_const 90 src/IROperator.h inline Expr make_const(Type t, bool val) {return make_const(t, (uint64_t)val);} make_const 91 src/IROperator.h inline Expr make_const(Type t, float val) {return make_const(t, (double)val);} make_const 92 src/IROperator.h inline Expr make_const(Type t, float16_t val) {return make_const(t, (double)val);} make_const 216 src/IROperator.h return Internal::make_const(t, *i); make_const 219 src/IROperator.h return Internal::make_const(t, *u); make_const 222 src/IROperator.h return Internal::make_const(t, *f); make_const 251 src/IROperator.h return Internal::Add::make(a, Internal::make_const(a.type(), b)); make_const 260 src/IROperator.h return Internal::Add::make(Internal::make_const(b.type(), a), b); make_const 286 src/IROperator.h return Internal::Sub::make(a, Internal::make_const(a.type(), b)); make_const 295 src/IROperator.h return Internal::Sub::make(Internal::make_const(b.type(), a), b); make_const 331 src/IROperator.h return Internal::Mul::make(a, Internal::make_const(a.type(), b)); make_const 340 src/IROperator.h return Internal::Mul::make(Internal::make_const(b.type(), a), b); make_const 381 src/IROperator.h return Internal::Div::make(a, Internal::make_const(a.type(), b)); make_const 390 src/IROperator.h return Internal::Div::make(Internal::make_const(b.type(), a), b); make_const 413 src/IROperator.h return Internal::Mod::make(a, Internal::make_const(a.type(), b)); make_const 422 src/IROperator.h return Internal::Mod::make(Internal::make_const(b.type(), a), b); make_const 441 src/IROperator.h return Internal::GT::make(a, Internal::make_const(a.type(), b)); make_const 451 src/IROperator.h return Internal::GT::make(Internal::make_const(b.type(), a), b); make_const 470 src/IROperator.h return Internal::LT::make(a, Internal::make_const(a.type(), b)); make_const 480 src/IROperator.h return Internal::LT::make(Internal::make_const(b.type(), a), b); make_const 499 src/IROperator.h return Internal::LE::make(a, Internal::make_const(a.type(), b)); make_const 509 src/IROperator.h return Internal::LE::make(Internal::make_const(b.type(), a), b); make_const 528 src/IROperator.h return Internal::GE::make(a, Internal::make_const(a.type(), b)); make_const 538 src/IROperator.h return Internal::GE::make(Internal::make_const(b.type(), a), b); make_const 557 src/IROperator.h return Internal::EQ::make(a, Internal::make_const(a.type(), b)); make_const 567 src/IROperator.h return Internal::EQ::make(Internal::make_const(b.type(), a), b); make_const 586 src/IROperator.h return Internal::NE::make(a, Internal::make_const(a.type(), b)); make_const 596 src/IROperator.h return Internal::NE::make(Internal::make_const(b.type(), a), b); make_const 670 src/IROperator.h return Internal::Max::make(a, Internal::make_const(a.type(), b)); make_const 682 src/IROperator.h return Internal::Max::make(Internal::make_const(b.type(), a), b); make_const 715 src/IROperator.h return Internal::Min::make(a, Internal::make_const(a.type(), b)); make_const 726 src/IROperator.h return Internal::Min::make(Internal::make_const(b.type(), a), b); make_const 1419 src/IROperator.h return x << Internal::make_const(x.type(), y); make_const 1423 src/IROperator.h return Internal::make_const(y.type(), x) << y; make_const 1445 src/IROperator.h return x >> Internal::make_const(x.type(), y); make_const 1449 src/IROperator.h return Internal::make_const(y.type(), x) >> y; make_const 86 src/Profiling.cpp return make_const(UInt(64), stack_bytes); make_const 315 src/Profiling.cpp make_const(UInt(64), profiling.func_stack_peak[i]), make_const 58 src/Random.cpp return make_const(UInt(32), ((C2 * (*i)) + C1) * (*i) + C0); make_const 79 src/Random.cpp result = rng32(make_const(UInt(32), (*ir) + (*ie))); make_const 673 src/Simplify.cpp expr = mutate(a * make_const(op->type, 2)); make_const 945 src/Simplify.cpp Expr ratio = make_const(a.type(), div_imp(ia, ib)); make_const 1620 src/Simplify.cpp expr = make_const(op->type, div_imp(num_max, ib)); make_const 1655 src/Simplify.cpp make_const(op->type, -1))); make_const 1685 src/Simplify.cpp expr = mutate(div_a->a / make_const(op->type, ia * ib)); make_const 1695 src/Simplify.cpp expr = mutate((div_a_a->a + make_const(op->type, ia*ib)) / make_const(op->type, ia*ic)); make_const 1705 src/Simplify.cpp expr = mutate(mul_a->a * make_const(op->type, div_imp(ia, ib))); make_const 1708 src/Simplify.cpp expr = mutate(mul_a->a / make_const(op->type, div_imp(ib, ia))); make_const 1719 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1729 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1740 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1750 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1762 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1773 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1784 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1795 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1806 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1817 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1828 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1840 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1849 src/Simplify.cpp Expr ratio = make_const(op->type, div_imp(ia, ib)); make_const 1873 src/Simplify.cpp expr = mutate(sub_a->a/b + make_const(op->type, -1)); make_const 2069 src/Simplify.cpp expr = make_const(op->type, mod_imp((int64_t)mod_rem.remainder, ib)); make_const 2088 src/Simplify.cpp Expr new_base = make_const(ramp_a->base.type(), mod_imp((int64_t)mod_rem.remainder, ib)); make_const 2100 src/Simplify.cpp Expr new_base = make_const(t, mod_imp((int64_t)mod_rem.remainder, ib)); make_const 2431 src/Simplify.cpp Expr factor = make_const(op->type, ia); make_const 2443 src/Simplify.cpp Expr factor = make_const(op->type, ia); make_const 2456 src/Simplify.cpp Expr ratio = make_const(op->type, ib / ia); make_const 2457 src/Simplify.cpp Expr factor = make_const(op->type, ia); make_const 2793 src/Simplify.cpp Expr factor = make_const(op->type, ia); make_const 2805 src/Simplify.cpp Expr factor = make_const(op->type, ia); make_const 2818 src/Simplify.cpp Expr ratio = make_const(op->type, ib / ia); make_const 2819 src/Simplify.cpp Expr factor = make_const(op->type, ia); make_const 3188 src/Simplify.cpp expr = mutate(0 < b % make_const(a.type(), ia)); make_const 3248 src/Simplify.cpp expr = mutate(sub_b->b < div_a_a->a % div_a_a->b + make_const(a.type(), -ic)); make_const 4022 src/Simplify.cpp b = make_const(t, ib); make_const 4055 src/Simplify.cpp is_const_power_of_two_integer(make_const(a.type(), ib + 1), &bits)) { make_const 4056 src/Simplify.cpp expr = Mod::make(a, make_const(a.type(), ib + 1)); make_const 4061 src/Simplify.cpp is_const_power_of_two_integer(make_const(a.type(), ub + 1), &bits)) { make_const 4062 src/Simplify.cpp expr = Mod::make(a, make_const(a.type(), ub + 1)); make_const 4091 src/Simplify.cpp expr = make_const(op->type, ia); make_const 4099 src/Simplify.cpp expr = make_const(a.type(), fa); make_const 5092 src/Simplify.cpp check(cast(UInt(16), 53) + cast(UInt(16), 87), make_const(UInt(16), 140)); make_const 5093 src/Simplify.cpp check(cast(Int(8), 127) + cast(Int(8), 1), make_const(Int(8), -128)); make_const 5094 src/Simplify.cpp check(cast(UInt(16), -1) - cast(UInt(16), 1), make_const(UInt(16), 65534)); make_const 5095 src/Simplify.cpp check(cast(Int(16), 4) * cast(Int(16), -5), make_const(Int(16), -20)); make_const 5096 src/Simplify.cpp check(cast(Int(16), 16) / cast(Int(16), 4), make_const(Int(16), 4)); make_const 5097 src/Simplify.cpp check(cast(Int(16), 23) % cast(Int(16), 5), make_const(Int(16), 3)); make_const 5098 src/Simplify.cpp check(min(cast(Int(16), 30000), cast(Int(16), -123)), make_const(Int(16), -123)); make_const 5099 src/Simplify.cpp check(max(cast(Int(16), 30000), cast(Int(16), 65000)), make_const(Int(16), 30000)); make_const 5104 src/Simplify.cpp check(cast(UInt(16), 123.4f), make_const(UInt(16), 123)); make_const 5108 src/Simplify.cpp check(cast(UInt(32), (int) 4000000000UL) + cast(UInt(32), 5), make_const(UInt(32), (int) 4000000005UL)); make_const 5109 src/Simplify.cpp check(cast(UInt(32), (int) 4000000000UL) - cast(UInt(32), 5), make_const(UInt(32), (int) 3999999995UL)); make_const 5110 src/Simplify.cpp check(cast(UInt(32), (int) 4000000000UL) / cast(UInt(32), 5), make_const(UInt(32), 800000000)); make_const 5111 src/Simplify.cpp check(cast(UInt(32), 800000000) * cast(UInt(32), 5), make_const(UInt(32), (int) 4000000000UL)); make_const 5112 src/Simplify.cpp check(cast(UInt(32), (int) 4000000023UL) % cast(UInt(32), 100), make_const(UInt(32), 23)); make_const 5113 src/Simplify.cpp check(min(cast(UInt(32), (int) 4000000023UL) , cast(UInt(32), 1000)), make_const(UInt(32), (int) 1000)); make_const 5114 src/Simplify.cpp check(max(cast(UInt(32), (int) 4000000023UL) , cast(UInt(32), 1000)), make_const(UInt(32), (int) 4000000023UL)); make_const 5432 src/Simplify.cpp check(max(cast(Int(8), x), cast(Int(8), -127)), max(cast(Int(8), x), make_const(Int(8), -127))); make_const 6059 src/Simplify.cpp make_const(Int(32), 0x7fffffff) + 1, make_const 6060 src/Simplify.cpp make_const(Int(32), 0x7ffffff0) + 16, make_const 6061 src/Simplify.cpp (make_const(Int(32), 0x7fffffff) + make_const 6062 src/Simplify.cpp make_const(Int(32), 0x7fffffff)), make_const 6063 src/Simplify.cpp make_const(Int(32), 0x08000000) * 16, make_const 6064 src/Simplify.cpp (make_const(Int(32), 0x00ffffff) * make_const 6065 src/Simplify.cpp make_const(Int(32), 0x00ffffff)), make_const 6066 src/Simplify.cpp make_const(Int(32), 0x80000000) - 1, make_const 6067 src/Simplify.cpp 0 - make_const(Int(32), 0x80000000), make_const 6068 src/Simplify.cpp make_const(Int(64), (int64_t)0x7fffffffffffffffLL) + 1, make_const 6069 src/Simplify.cpp make_const(Int(64), (int64_t)0x7ffffffffffffff0LL) + 16, make_const 6070 src/Simplify.cpp (make_const(Int(64), (int64_t)0x7fffffffffffffffLL) + make_const 6071 src/Simplify.cpp make_const(Int(64), (int64_t)0x7fffffffffffffffLL)), make_const 6072 src/Simplify.cpp make_const(Int(64), (int64_t)0x0800000000000000LL) * 16, make_const 6073 src/Simplify.cpp (make_const(Int(64), (int64_t)0x00ffffffffffffffLL) * make_const 6074 src/Simplify.cpp make_const(Int(64), (int64_t)0x00ffffffffffffffLL)), make_const 6075 src/Simplify.cpp make_const(Int(64), (int64_t)0x8000000000000000LL) - 1, make_const 6076 src/Simplify.cpp 0 - make_const(Int(64), (int64_t)0x8000000000000000LL), make_const 6079 src/Simplify.cpp make_const(Int(32), 0x7ffffffe) + 1, make_const 6080 src/Simplify.cpp make_const(Int(32), 0x7fffffef) + 16, make_const 6081 src/Simplify.cpp make_const(Int(32), 0x07ffffff) * 2, make_const 6082 src/Simplify.cpp (make_const(Int(32), 0x0000ffff) * make_const 6083 src/Simplify.cpp make_const(Int(32), 0x00008000)), make_const 6084 src/Simplify.cpp make_const(Int(32), 0x80000001) - 1, make_const 6085 src/Simplify.cpp 0 - make_const(Int(32), 0x7fffffff), make_const 6086 src/Simplify.cpp make_const(Int(64), (int64_t)0x7ffffffffffffffeLL) + 1, make_const 6087 src/Simplify.cpp make_const(Int(64), (int64_t)0x7fffffffffffffefLL) + 16, make_const 6088 src/Simplify.cpp make_const(Int(64), (int64_t)0x07ffffffffffffffLL) * 16, make_const 6089 src/Simplify.cpp (make_const(Int(64), (int64_t)0x00000000ffffffffLL) * make_const 6090 src/Simplify.cpp make_const(Int(64), (int64_t)0x0000000080000000LL)), make_const 6091 src/Simplify.cpp make_const(Int(64), (int64_t)0x8000000000000001LL) - 1, make_const 6092 src/Simplify.cpp 0 - make_const(Int(64), (int64_t)0x7fffffffffffffffLL), make_const 6420 src/Simplify.cpp Expr expected = Broadcast::make(-16, 2) < (ramp(make_const(UInt(16), 7), make_const(UInt(16), 11), 2) - Broadcast::make(1, 2)); make_const 135 src/VectorizeLoops.cpp Expr last_lane_idx = make_const(r->base.type(), r->lanes-1); make_const 43 test/correctness/constant_expr.cpp Expr e = make_const(t, value);