Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
llvmWARshim.cpp
Go to the documentation of this file.
1#include <llvm/IR/IRBuilder.h>
2namespace sysio { namespace chain { namespace eosvmoc {
3namespace LLVMJIT {
4
5llvm::Value* CreateInBoundsGEPWAR(llvm::IRBuilder<>& irBuilder, llvm::Value* Ptr, llvm::Value* v1, llvm::Value* v2) {
6 if(!v2)
7 return irBuilder.CreateInBoundsGEP(Ptr, v1);
8 else
9 return irBuilder.CreateInBoundsGEP(Ptr, {v1, v2});
10}
11
12}
13
14}}}
llvm::Value * CreateInBoundsGEPWAR(llvm::IRBuilder<> &irBuilder, llvm::Value *Ptr, llvm::Value *v1, llvm::Value *v2=nullptr)