Home | History | Annotate | Download | only in llvm-c-test

Lines Matching refs:stack

44   LLVMValueRef stack[MAX_DEPTH];
59 printf("stack underflow\n");
63 stack[depth - 2] = LLVMBuildBinOp(builder, op_to_opcode(tok),
64 stack[depth - 1], stack[depth - 2], "");
73 printf("stack underflow\n");
77 off = LLVMBuildGEP(builder, param, &stack[depth - 1], 1, "");
78 stack[depth - 1] = LLVMBuildLoad(builder, off, "");
92 printf("stack overflow\n");
96 stack[depth++] = LLVMConstInt(LLVMInt64Type(), val, 1);
103 printf("stack underflow at return\n");
107 LLVMBuildRet(builder, stack[depth - 1]);
109 return stack[depth - 1];