Lines Matching full:create
13 // The goal of this snippet is to create in the memory the LLVM module
40 // Create the fib function and insert it into module M. This function is said
48 BasicBlock *BB = BasicBlock::Create(Context, "EntryBlock", FibF);
58 // Create the true_block.
59 BasicBlock *RetBB = BasicBlock::Create(Context, "return", FibF);
60 // Create an exit block.
61 BasicBlock* RecurseBB = BasicBlock::Create(Context, "recurse", FibF);
63 // Create the "if (arg <= 2) goto exitbb"
65 BranchInst::Create(RetBB, RecurseBB, CondInst, BB);
67 // Create: ret int 1
68 ReturnInst::Create(Context, One, RetBB);
70 // create fib(x-1)
72 CallInst *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB);
75 // create fib(x-2)
77 CallInst *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB);
85 // Create the return instruction and add it to the basic block
86 ReturnInst::Create(Context, Sum, RecurseBB);
98 // Create some module to put our function into it.
101 // We are about to create the "fib" function:
104 // Now we going to create JIT
110 .create();