reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

examples/BrainF/BrainF.cpp
   65   module = new Module("BrainF", C);
   70   Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
   70   Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
   76       module->getOrInsertFunction("getchar", IntegerType::getInt32Ty(C));
   80       "putchar", IntegerType::getInt32Ty(C), IntegerType::getInt32Ty(C));
   80       "putchar", IntegerType::getInt32Ty(C), IntegerType::getInt32Ty(C));
   85   brainf_func = Function::Create(FunctionType::get(Type::getVoidTy(C), false),
   88   builder = new IRBuilder<>(BasicBlock::Create(C, label, brainf_func));
   91   ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal));
   93   Type* IntPtrTy = IntegerType::getInt32Ty(C);
   94   Type* Int8Ty = IntegerType::getInt8Ty(C);
  105       ConstantInt::get(C, APInt(8, 0)),
  107       ConstantInt::get(C, APInt(32, 1)),
  108       ConstantInt::get(C, APInt(1, 0))
  119       CreateGEP(ptr_arr, ConstantInt::get(C, APInt(32, memtotal)), "arrmax");
  124                                ConstantInt::get(C, APInt(32, memtotal/2)),
  130   endbb = BasicBlock::Create(C, label, brainf_func);
  136   ReturnInst::Create(C, endbb);
  143       ConstantDataArray::getString(C, "Error: The head has left the tape.",
  156         "puts", IntegerType::getInt32Ty(C),
  157         PointerType::getUnqual(IntegerType::getInt8Ty(C)));
  160     aberrorbb = BasicBlock::Create(C, label, brainf_func);
  164       Constant *zero_32 = Constant::getNullValue(IntegerType::getInt32Ty(C));