Lines Matching defs:const

71             const size_t page = sysconf(_SC_PAGESIZE);
92 static void notify_vtune(const char* name, void* addr, size_t len) {
104 static void notify_vtune(const char* name, void* addr, size_t len) {}
131 const skcms_TransferFunction* skcms_sRGB_TransferFunction() { return nullptr; }
132 const skcms_TransferFunction* skcms_sRGB_Inverse_TransferFunction() { return nullptr; }
138 static const bool fma =
147 static const bool fp16 = false; // TODO
179 bool write(const void* buffer, size_t size) override {
180 SkDebugf("%.*s", (int)size, (const char*)buffer);
185 size_t bytesWritten() const override {
208 static void write(SkWStream* o, const char* s) {
212 static const char* name(Op op) {
287 static void write_one_instruction(Val id, const OptimizedInstruction& inst, SkWStream* o) {
376 void Builder::dump(SkWStream* o) const {
386 const OptimizedInstruction& inst = optimized[id];
392 void Program::dump(SkWStream* o) const {
405 const InterpreterInstruction& inst = fImpl->instructions[i];
500 const Instruction& inst = program[id];
515 const Instruction& inst = program[id];
521 const Instruction& last = program[lastId];
548 auto it = std::remove_if(program.begin(), program.end(), [&](const Instruction& inst) {
557 std::vector<OptimizedInstruction> finalize(const std::vector<Instruction> program) {
604 std::vector<OptimizedInstruction> Builder::optimize() const {
610 Program Builder::done(const char* debug_name, bool allow_jit) const {
620 uint64_t Builder::hash() const {
628 bool operator==(const Instruction& a, const Instruction& b) {
639 uint32_t InstructionHash::operator()(const Instruction& inst, uint32_t seed) const {
1215 const skcms_TransferFunction* tf = skcms_sRGB_TransferFunction();
1359 const skcms_TransferFunction* tf = skcms_sRGB_Inverse_TransferFunction();
1913 size_t Assembler::size() const { return fSize; }
1915 void Assembler::bytes(const void* p, int n) {
1949 const Mem& m = dst.mem;
1950 const bool need_SIB = (m.base&7) == rsp
2059 void Assembler::imm_byte_after_operand(const Operand& operand, int imm) {
2181 const Mem& m = y.mem;
2182 const bool need_SIB = m.base == rsp
2198 const int rip = rbp;
2414 const int imm19 = this->disp19(l);
2418 const int imm19 = this->disp19(l);
2422 const int imm19 = this->disp19(l);
2486 const int imm19 = this->disp19(l);
2561 void Program::eval(int n, void* args[]) const {
2580 const void* jit_entry = fImpl->jit_entry.load();
2619 void Program::setupLLVM(const std::vector<OptimizedInstruction>& instructions,
2620 const char* debug_name) {
2627 const int K = (true && SkCpu::Supports(SkCpu::HSW)) ? 8 : 4;
3032 void Program::waitForLLVM() const {
3040 bool Program::hasJIT() const {
3084 Program::Program(const std::vector<OptimizedInstruction>& instructions,
3085 const std::vector<int>& strides,
3086 const char* debug_name, bool allow_jit) : Program() {
3100 std::vector<InterpreterInstruction> Program::instructions() const { return fImpl->instructions; }
3101 int Program::nargs() const { return (int)fImpl->strides.size(); }
3102 int Program::nregs() const { return fImpl->regs; }
3103 int Program::loop () const { return fImpl->loop; }
3104 bool Program::empty() const { return fImpl->instructions.empty(); }
3107 void Program::setupInterpreter(const std::vector<OptimizedInstruction>& instructions) {
3125 const OptimizedInstruction& inst = instructions[id];
3136 const Val x = inst.x, y = inst.y, z = inst.z, w = inst.w;
3176 auto push_instruction = [&](Val id, const OptimizedInstruction& inst) {
3192 const OptimizedInstruction& inst = instructions[id];
3199 const OptimizedInstruction& inst = instructions[id];
3216 bool Program::jit(const std::vector<OptimizedInstruction>& instructions,
3219 Assembler* a) const {
3239 const int nstack_slots = *stack_hint >= 0 ? *stack_hint
3245 const int K = 8;
3247 const A::GP64 N = A::rcx,
3257 const uint32_t incoming_registers_used = *registers_used;
3322 const A::GP64 N = A::rdi,
3365 const int K = 4;
3366 const A::X N = A::x0,
3409 const int active_lanes = scalar ? 1 : K;
3410 const OptimizedInstruction& inst = instructions[id];
3411 const Op op = inst.op;
3412 const Val x = inst.x,
3416 const int immA = inst.immA,
4364 void Program::setupJIT(const std::vector<OptimizedInstruction>& instructions,
4365 const char* debug_name) {
4411 for (const char* name : {"skvm_jit", "_skvm_jit"} ) {
4419 void Program::disassemble(SkWStream* o) const {
4424 const void* jit_entry = fImpl->jit_entry.load();