Lines Matching refs:depth
46 int depth = 0; in build_from_tokens() local
59 if (depth < 2) { in build_from_tokens()
64 stack[depth - 2] = LLVMBuildBinOp(builder, op_to_opcode(tok), in build_from_tokens()
65 stack[depth - 1], stack[depth - 2], ""); in build_from_tokens()
66 depth--; in build_from_tokens()
73 if (depth < 1) { in build_from_tokens()
78 off = LLVMBuildGEP(builder, param, &stack[depth - 1], 1, ""); in build_from_tokens()
79 stack[depth - 1] = LLVMBuildLoad(builder, off, ""); in build_from_tokens()
92 if (depth >= MAX_DEPTH) { in build_from_tokens()
97 stack[depth++] = LLVMConstInt(LLVMInt64Type(), val, 1); in build_from_tokens()
103 if (depth < 1) { in build_from_tokens()
108 LLVMBuildRet(builder, stack[depth - 1]); in build_from_tokens()
110 return stack[depth - 1]; in build_from_tokens()