Lines Matching refs:BrainF
1 //===-- BrainF.cpp - BrainF compiler example ----------------------------===//
10 // This class compiles the BrainF language into LLVM assembly.
12 // The BrainF language has 8 commands:
26 #include "BrainF.h"
35 const char *BrainF::tapereg = "tape";
36 const char *BrainF::headreg = "head";
37 const char *BrainF::label = "brainf";
38 const char *BrainF::testreg = "test";
40 Module *BrainF::parse(std::istream *in1, int mem, CompileFlags cf,
52 void BrainF::header(LLVMContext& C) {
53 module = new Module("BrainF", C);
74 //define void @brainf()
76 getOrInsertFunction("brainf", Type::getVoidTy(C), NULL));
121 //brainf.end:
153 //brainf.aberror:
179 //br label %brainf.end
184 void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb,