Lines Matching defs:function
22 struct function {
369 static LLVMValueRef pseudo_to_value(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
403 static LLVMValueRef pseudo_to_rvalue(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
413 static LLVMValueRef value_to_ivalue(struct function *fn, struct symbol *ctype, LLVMValueRef val)
428 static LLVMValueRef value_to_pvalue(struct function *fn, struct symbol *ctype, LLVMValueRef val)
447 static LLVMValueRef adjust_type(struct function *fn, struct symbol *ctype, LLVMValueRef val)
460 static LLVMValueRef get_operand(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
471 static LLVMValueRef get_ioperand(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
534 static void output_op_binary(struct function *fn, struct instruction *insn)
619 static void output_op_compare(struct function *fn, struct instruction *insn)
672 static void output_op_ret(struct function *fn, struct instruction *insn)
683 static LLVMValueRef calc_memop_addr(struct function *fn, struct instruction *insn)
705 static void output_op_load(struct function *fn, struct instruction *insn)
719 static void output_op_store(struct function *fn, struct instruction *insn)
731 static LLVMValueRef bool_value(struct function *fn, LLVMValueRef value)
739 static void output_op_cbr(struct function *fn, struct instruction *br)
749 static void output_op_br(struct function *fn, struct instruction *br)
754 static void output_op_sel(struct function *fn, struct instruction *insn)
769 static void output_op_switch(struct function *fn, struct instruction *insn)
797 static void output_op_call(struct function *fn, struct instruction *insn)
827 static void output_op_phisrc(struct function *fn, struct instruction *insn)
832 static void output_op_phi(struct function *fn, struct instruction *insn)
839 static void output_op_ptrcast(struct function *fn, struct instruction *insn)
877 static void output_op_cast(struct function *fn, struct instruction *insn, LLVMOpcode op)
911 static void output_op_fpcast(struct function *fn, struct instruction *insn)
938 static void output_op_label(struct function *fn, struct instruction *insn)
943 static void output_op_setval(struct function *fn, struct instruction *insn)
959 static void output_op_setfval(struct function *fn, struct instruction *insn)
968 static void output_insn(struct function *fn, struct instruction *insn)
1103 static void output_bb(struct function *fn, struct basic_block *bb)
1122 struct function function = { .module = module };
1127 function.fn = get_sym_value(module, sym);
1128 LLVMSetFunctionCallConv(function.fn, LLVMCCallConv);
1129 LLVMSetLinkage(function.fn, function_linkage(sym));
1131 function.builder = LLVMCreateBuilder();
1139 arg = LLVMGetParam(function.fn, i);
1151 bbr = LLVMAppendBasicBlock(function.fn, bbname);
1158 LLVMPositionBuilderAtEnd(function.builder, bb->priv);
1160 output_bb(&function, bb);