Lines Matching refs:pseudo
258 static const char *pseudo_name(pseudo_t pseudo, char *buf)
260 switch (pseudo->type) {
262 snprintf(buf, MAX_PSEUDO_NAME, "R%d.", pseudo->nr);
265 snprintf(buf, MAX_PSEUDO_NAME, "PHI%d.", pseudo->nr);
369 static LLVMValueRef pseudo_to_value(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
373 switch (pseudo->type) {
375 result = pseudo->priv;
378 result = get_sym_value(fn->module, pseudo->sym);
381 result = val_to_value(pseudo->value, ctype);
384 result = LLVMGetParam(fn->fn, pseudo->nr - 1);
388 result = pseudo->priv;
403 static LLVMValueRef pseudo_to_rvalue(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
405 LLVMValueRef val = pseudo_to_value(fn, ctype, pseudo);
409 pseudo_name(pseudo, name);
457 * Get the LLVMValue corresponding to the pseudo
460 static LLVMValueRef get_operand(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
462 LLVMValueRef target = pseudo_to_value(fn, ctype, pseudo);
467 * Get the LLVMValue corresponding to the pseudo
471 static LLVMValueRef get_ioperand(struct function *fn, struct symbol *ctype, pseudo_t pseudo)
473 LLVMValueRef target = pseudo_to_value(fn, ctype, pseudo);
674 pseudo_t pseudo = insn->src;
676 if (pseudo && pseudo != VOID) {
677 LLVMValueRef result = get_operand(fn, insn->type, pseudo);
802 struct pseudo *arg;