Lines Matching refs:stack
45 LLVMValueRef stack[MAX_DEPTH];
60 printf("stack underflow\n");
64 stack[depth - 2] = LLVMBuildBinOp(builder, op_to_opcode(tok),
65 stack[depth - 1], stack[depth - 2], "");
74 printf("stack underflow\n");
78 off = LLVMBuildGEP(builder, param, &stack[depth - 1], 1, "");
79 stack[depth - 1] = LLVMBuildLoad(builder, off, "");
93 printf("stack overflow\n");
97 stack[depth++] = LLVMConstInt(LLVMInt64Type(), val, 1);
104 printf("stack underflow at return\n");
108 LLVMBuildRet(builder, stack[depth - 1]);
110 return stack[depth - 1];