first argument from module (opcode llvm)

Viewed 48
1 Answers
Function::arg_iterator argument = F->arg_begin();
Argument *Pierwszy = argument++;
Pierwszy->setName("c");
Value *Drugi = argument++;
Drugi->setName("d");
    
/* tworzymy instrukcję */
Instruction *Dodaj = BinaryOperator::Create(Instruction::Add,
Pierwszy, Drugi, "wynik");
Related