Lines Matching refs:wrap

77   return wrap(new LLVMContext());  in LLVMContextCreate()
81 return wrap(&getGlobalContext()); in LLVMGetGlobalContext()
150 return wrap(new Module(ModuleID, getGlobalContext())); in LLVMModuleCreateWithName()
155 return wrap(new Module(ModuleID, *unwrap(C))); in LLVMModuleCreateWithNameInContext()
223 return wrap(&unwrap(M)->getContext()); in LLVMGetModuleContext()
275 return wrap(&unwrap(Ty)->getContext()); in LLVMGetTypeContext()
317 return wrap(IntegerType::get(*unwrap(C), NumBits)); in LLVMIntTypeInContext()
398 return wrap(FunctionType::get(unwrap(ReturnType), Tys, IsVarArg != 0)); in LLVMFunctionType()
406 return wrap(unwrap<FunctionType>(FunctionTy)->getReturnType()); in LLVMGetReturnType()
417 *Dest++ = wrap(*I); in LLVMGetParamTypes()
425 return wrap(StructType::get(*unwrap(C), Tys, Packed != 0)); in LLVMStructTypeInContext()
436 return wrap(StructType::create(*unwrap(C), Name)); in LLVMStructCreateNamed()
461 *Dest++ = wrap(*I); in LLVMGetStructElementTypes()
466 return wrap(Ty->getTypeAtIndex(i)); in LLVMStructGetTypeAtIndex()
478 return wrap(unwrap(M)->getTypeByName(Name)); in LLVMGetTypeByName()
484 return wrap(ArrayType::get(unwrap(ElementType), ElementCount)); in LLVMArrayType()
488 return wrap(PointerType::get(unwrap(ElementType), AddressSpace)); in LLVMPointerType()
492 return wrap(VectorType::get(unwrap(ElementType), ElementCount)); in LLVMVectorType()
496 return wrap(unwrap<SequentialType>(Ty)->getElementType()); in LLVMGetElementType()
514 return wrap(Type::getVoidTy(*unwrap(C))); in LLVMVoidTypeInContext()
517 return wrap(Type::getLabelTy(*unwrap(C))); in LLVMLabelTypeInContext()
532 return wrap(unwrap(Val)->getType()); in LLVMTypeOf()
573 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata()
601 return wrap(static_cast<Value*>(dyn_cast_or_null<name>(unwrap(Val)))); \
627 return wrap(&*I); in LLVMGetFirstUse()
633 return wrap(Next); in LLVMGetNextUse()
638 return wrap(unwrap(U)->getUser()); in LLVMGetUser()
642 return wrap(unwrap(U)->get()); in LLVMGetUsedValue()
653 return wrap(C->getValue()); in getMDNodeOperandImpl()
654 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl()
662 return wrap(L->getValue()); in LLVMGetOperand()
668 return wrap(cast<User>(V)->getOperand(Index)); in LLVMGetOperand()
673 return wrap(&cast<User>(V)->getOperandUse(Index)); in LLVMGetOperandUse()
691 return wrap(Constant::getNullValue(unwrap(Ty))); in LLVMConstNull()
695 return wrap(Constant::getAllOnesValue(unwrap(Ty))); in LLVMConstAllOnes()
699 return wrap(UndefValue::get(unwrap(Ty))); in LLVMGetUndef()
718 wrap(ConstantPointerNull::get(unwrap<PointerType>(Ty))); in LLVMConstPointerNull()
726 return wrap(MetadataAsValue::get( in LLVMMDStringInContext()
753 return wrap(MetadataAsValue::get(Context, LocalAsMetadata::get(V))); in LLVMMDNodeInContext()
758 return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs))); in LLVMMDNodeInContext()
787 *Dest = wrap(MDV->getValue()); in LLVMGetMDNodeOperands()
812 Dest[i] = wrap(MetadataAsValue::get(Context, N->getOperand(i))); in LLVMGetNamedMetadataOperands()
830 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), N, SignExtend != 0)); in LLVMConstInt()
837 return wrap(ConstantInt::get(Ty->getContext(), in LLVMConstIntOfArbitraryPrecision()
844 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), StringRef(Str), in LLVMConstIntOfString()
850 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), StringRef(Str, SLen), in LLVMConstIntOfStringAndSize()
855 return wrap(ConstantFP::get(unwrap(RealTy), N)); in LLVMConstReal()
859 return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Text))); in LLVMConstRealOfString()
864 return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Str, SLen))); in LLVMConstRealOfStringAndSize()
903 return wrap(ConstantDataArray::getString(*unwrap(C), StringRef(Str, Length), in LLVMConstStringInContext()
910 return wrap(ConstantStruct::getAnon(*unwrap(C), makeArrayRef(Elements, Count), in LLVMConstStructInContext()
921 return wrap(static_cast<ConstantDataSequential*>(unwrap(c))->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
937 return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V)); in LLVMConstArray()
952 return wrap(ConstantStruct::get(Ty, makeArrayRef(Elements, Count))); in LLVMConstNamedStruct()
956 return wrap(ConstantVector::get(makeArrayRef( in LLVMConstVector()
989 return wrap(ConstantExpr::getAlignOf(unwrap(Ty))); in LLVMAlignOf()
993 return wrap(ConstantExpr::getSizeOf(unwrap(Ty))); in LLVMSizeOf()
997 return wrap(ConstantExpr::getNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNeg()
1001 return wrap(ConstantExpr::getNSWNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNSWNeg()
1005 return wrap(ConstantExpr::getNUWNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNUWNeg()
1010 return wrap(ConstantExpr::getFNeg(unwrap<Constant>(ConstantVal))); in LLVMConstFNeg()
1014 return wrap(ConstantExpr::getNot(unwrap<Constant>(ConstantVal))); in LLVMConstNot()
1018 return wrap(ConstantExpr::getAdd(unwrap<Constant>(LHSConstant), in LLVMConstAdd()
1024 return wrap(ConstantExpr::getNSWAdd(unwrap<Constant>(LHSConstant), in LLVMConstNSWAdd()
1030 return wrap(ConstantExpr::getNUWAdd(unwrap<Constant>(LHSConstant), in LLVMConstNUWAdd()
1035 return wrap(ConstantExpr::getFAdd(unwrap<Constant>(LHSConstant), in LLVMConstFAdd()
1040 return wrap(ConstantExpr::getSub(unwrap<Constant>(LHSConstant), in LLVMConstSub()
1046 return wrap(ConstantExpr::getNSWSub(unwrap<Constant>(LHSConstant), in LLVMConstNSWSub()
1052 return wrap(ConstantExpr::getNUWSub(unwrap<Constant>(LHSConstant), in LLVMConstNUWSub()
1057 return wrap(ConstantExpr::getFSub(unwrap<Constant>(LHSConstant), in LLVMConstFSub()
1062 return wrap(ConstantExpr::getMul(unwrap<Constant>(LHSConstant), in LLVMConstMul()
1068 return wrap(ConstantExpr::getNSWMul(unwrap<Constant>(LHSConstant), in LLVMConstNSWMul()
1074 return wrap(ConstantExpr::getNUWMul(unwrap<Constant>(LHSConstant), in LLVMConstNUWMul()
1079 return wrap(ConstantExpr::getFMul(unwrap<Constant>(LHSConstant), in LLVMConstFMul()
1084 return wrap(ConstantExpr::getUDiv(unwrap<Constant>(LHSConstant), in LLVMConstUDiv()
1089 return wrap(ConstantExpr::getSDiv(unwrap<Constant>(LHSConstant), in LLVMConstSDiv()
1095 return wrap(ConstantExpr::getExactSDiv(unwrap<Constant>(LHSConstant), in LLVMConstExactSDiv()
1100 return wrap(ConstantExpr::getFDiv(unwrap<Constant>(LHSConstant), in LLVMConstFDiv()
1105 return wrap(ConstantExpr::getURem(unwrap<Constant>(LHSConstant), in LLVMConstURem()
1110 return wrap(ConstantExpr::getSRem(unwrap<Constant>(LHSConstant), in LLVMConstSRem()
1115 return wrap(ConstantExpr::getFRem(unwrap<Constant>(LHSConstant), in LLVMConstFRem()
1120 return wrap(ConstantExpr::getAnd(unwrap<Constant>(LHSConstant), in LLVMConstAnd()
1125 return wrap(ConstantExpr::getOr(unwrap<Constant>(LHSConstant), in LLVMConstOr()
1130 return wrap(ConstantExpr::getXor(unwrap<Constant>(LHSConstant), in LLVMConstXor()
1136 return wrap(ConstantExpr::getICmp(Predicate, in LLVMConstICmp()
1143 return wrap(ConstantExpr::getFCmp(Predicate, in LLVMConstFCmp()
1149 return wrap(ConstantExpr::getShl(unwrap<Constant>(LHSConstant), in LLVMConstShl()
1154 return wrap(ConstantExpr::getLShr(unwrap<Constant>(LHSConstant), in LLVMConstLShr()
1159 return wrap(ConstantExpr::getAShr(unwrap<Constant>(LHSConstant), in LLVMConstAShr()
1167 return wrap(ConstantExpr::getGetElementPtr( in LLVMConstGEP()
1177 return wrap(ConstantExpr::getInBoundsGetElementPtr(nullptr, Val, IdxList)); in LLVMConstInBoundsGEP()
1181 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
1186 return wrap(ConstantExpr::getSExt(unwrap<Constant>(ConstantVal), in LLVMConstSExt()
1191 return wrap(ConstantExpr::getZExt(unwrap<Constant>(ConstantVal), in LLVMConstZExt()
1196 return wrap(ConstantExpr::getFPTrunc(unwrap<Constant>(ConstantVal), in LLVMConstFPTrunc()
1201 return wrap(ConstantExpr::getFPExtend(unwrap<Constant>(ConstantVal), in LLVMConstFPExt()
1206 return wrap(ConstantExpr::getUIToFP(unwrap<Constant>(ConstantVal), in LLVMConstUIToFP()
1211 return wrap(ConstantExpr::getSIToFP(unwrap<Constant>(ConstantVal), in LLVMConstSIToFP()
1216 return wrap(ConstantExpr::getFPToUI(unwrap<Constant>(ConstantVal), in LLVMConstFPToUI()
1221 return wrap(ConstantExpr::getFPToSI(unwrap<Constant>(ConstantVal), in LLVMConstFPToSI()
1226 return wrap(ConstantExpr::getPtrToInt(unwrap<Constant>(ConstantVal), in LLVMConstPtrToInt()
1231 return wrap(ConstantExpr::getIntToPtr(unwrap<Constant>(ConstantVal), in LLVMConstIntToPtr()
1236 return wrap(ConstantExpr::getBitCast(unwrap<Constant>(ConstantVal), in LLVMConstBitCast()
1242 return wrap(ConstantExpr::getAddrSpaceCast(unwrap<Constant>(ConstantVal), in LLVMConstAddrSpaceCast()
1248 return wrap(ConstantExpr::getZExtOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstZExtOrBitCast()
1254 return wrap(ConstantExpr::getSExtOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstSExtOrBitCast()
1260 return wrap(ConstantExpr::getTruncOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstTruncOrBitCast()
1266 return wrap(ConstantExpr::getPointerCast(unwrap<Constant>(ConstantVal), in LLVMConstPointerCast()
1272 return wrap(ConstantExpr::getIntegerCast(unwrap<Constant>(ConstantVal), in LLVMConstIntCast()
1277 return wrap(ConstantExpr::getFPCast(unwrap<Constant>(ConstantVal), in LLVMConstFPCast()
1284 return wrap(ConstantExpr::getSelect(unwrap<Constant>(ConstantCondition), in LLVMConstSelect()
1291 return wrap(ConstantExpr::getExtractElement(unwrap<Constant>(VectorConstant), in LLVMConstExtractElement()
1298 return wrap(ConstantExpr::getInsertElement(unwrap<Constant>(VectorConstant), in LLVMConstInsertElement()
1306 return wrap(ConstantExpr::getShuffleVector(unwrap<Constant>(VectorAConstant), in LLVMConstShuffleVector()
1313 return wrap(ConstantExpr::getExtractValue(unwrap<Constant>(AggConstant), in LLVMConstExtractValue()
1320 return wrap(ConstantExpr::getInsertValue(unwrap<Constant>(AggConstant), in LLVMConstInsertValue()
1329 return wrap(InlineAsm::get(dyn_cast<FunctionType>(unwrap(Ty)), AsmString, in LLVMConstInlineAsm()
1334 return wrap(BlockAddress::get(unwrap<Function>(F), unwrap(BB))); in LLVMBlockAddress()
1340 return wrap(unwrap<GlobalValue>(Global)->getParent()); in LLVMGetGlobalParent()
1509 return wrap(new GlobalVariable(*unwrap(M), unwrap(Ty), false, in LLVMAddGlobal()
1516 return wrap(new GlobalVariable(*unwrap(M), unwrap(Ty), false, in LLVMAddGlobalInAddressSpace()
1523 return wrap(unwrap(M)->getNamedGlobal(Name)); in LLVMGetNamedGlobal()
1531 return wrap(I); in LLVMGetFirstGlobal()
1539 return wrap(--I); in LLVMGetLastGlobal()
1547 return wrap(I); in LLVMGetNextGlobal()
1555 return wrap(--I); in LLVMGetPreviousGlobal()
1566 return wrap(GV->getInitializer()); in LLVMGetInitializer()
1642 return wrap(GlobalAlias::create(PTy, GlobalValue::ExternalLinkage, Name, in LLVMAddAlias()
1650 return wrap(Function::Create(unwrap<FunctionType>(FunctionTy), in LLVMAddFunction()
1655 return wrap(unwrap(M)->getFunction(Name)); in LLVMGetNamedFunction()
1663 return wrap(I); in LLVMGetFirstFunction()
1671 return wrap(--I); in LLVMGetLastFunction()
1679 return wrap(I); in LLVMGetNextFunction()
1687 return wrap(--I); in LLVMGetPreviousFunction()
1695 return wrap(unwrap<Function>(Fn)->getPersonalityFn()); in LLVMGetPersonalityFn()
1782 *ParamRefs++ = wrap(I); in LLVMGetParams()
1789 return wrap(AI); in LLVMGetParam()
1793 return wrap(unwrap<Argument>(V)->getParent()); in LLVMGetParamParent()
1801 return wrap(I); in LLVMGetFirstParam()
1809 return wrap(--I); in LLVMGetLastParam()
1817 return wrap(I); in LLVMGetNextParam()
1825 return wrap(--I); in LLVMGetPreviousParam()
1857 return wrap(static_cast<Value*>(unwrap(BB))); in LLVMBasicBlockAsValue()
1865 return wrap(unwrap<BasicBlock>(Val)); in LLVMValueAsBasicBlock()
1869 return wrap(unwrap(BB)->getParent()); in LLVMGetBasicBlockParent()
1873 return wrap(unwrap(BB)->getTerminator()); in LLVMGetBasicBlockTerminator()
1883 *BasicBlocksRefs++ = wrap(I); in LLVMGetBasicBlocks()
1887 return wrap(&unwrap<Function>(Fn)->getEntryBlock()); in LLVMGetEntryBasicBlock()
1895 return wrap(I); in LLVMGetFirstBasicBlock()
1903 return wrap(--I); in LLVMGetLastBasicBlock()
1911 return wrap(I); in LLVMGetNextBasicBlock()
1919 return wrap(--I); in LLVMGetPreviousBasicBlock()
1925 return wrap(BasicBlock::Create(*unwrap(C), Name, unwrap<Function>(FnRef))); in LLVMAppendBasicBlockInContext()
1936 return wrap(BasicBlock::Create(*unwrap(C), Name, BB->getParent(), BB)); in LLVMInsertBasicBlockInContext()
1963 return wrap(unwrap<Instruction>(Inst)->getParent()); in LLVMGetInstructionParent()
1971 return wrap(I); in LLVMGetFirstInstruction()
1979 return wrap(--I); in LLVMGetLastInstruction()
1987 return wrap(I); in LLVMGetNextInstruction()
1995 return wrap(--I); in LLVMGetPreviousInstruction()
2028 return wrap(C->clone()); in LLVMInstructionClone()
2100 return wrap(unwrap<TerminatorInst>(Term)->getSuccessor(i)); in LLVMGetSuccessor()
2114 return wrap(unwrap<BranchInst>(Branch)->getCondition()); in LLVMGetCondition()
2124 return wrap(unwrap<SwitchInst>(Switch)->getDefaultDest()); in LLVMGetSwitchDefaultDest()
2141 return wrap(unwrap<PHINode>(PhiNode)->getIncomingValue(Index)); in LLVMGetIncomingValue()
2145 return wrap(unwrap<PHINode>(PhiNode)->getIncomingBlock(Index)); in LLVMGetIncomingBlock()
2152 return wrap(new IRBuilder<>(*unwrap(C))); in LLVMCreateBuilderInContext()
2177 return wrap(unwrap(Builder)->GetInsertBlock()); in LLVMGetInsertBlock()
2207 return wrap(MetadataAsValue::get( in LLVMGetCurrentDebugLocation()
2219 return wrap(unwrap(B)->CreateRetVoid()); in LLVMBuildRetVoid()
2223 return wrap(unwrap(B)->CreateRet(unwrap(V))); in LLVMBuildRet()
2228 return wrap(unwrap(B)->CreateAggregateRet(unwrap(RetVals), N)); in LLVMBuildAggregateRet()
2232 return wrap(unwrap(B)->CreateBr(unwrap(Dest))); in LLVMBuildBr()
2237 return wrap(unwrap(B)->CreateCondBr(unwrap(If), unwrap(Then), unwrap(Else))); in LLVMBuildCondBr()
2242 return wrap(unwrap(B)->CreateSwitch(unwrap(V), unwrap(Else), NumCases)); in LLVMBuildSwitch()
2247 return wrap(unwrap(B)->CreateIndirectBr(unwrap(Addr), NumDests)); in LLVMBuildIndirectBr()
2254 return wrap(unwrap(B)->CreateInvoke(unwrap(Fn), unwrap(Then), unwrap(Catch), in LLVMBuildInvoke()
2268 return wrap(unwrap(B)->CreateLandingPad(unwrap(Ty), NumClauses, Name)); in LLVMBuildLandingPad()
2272 return wrap(unwrap(B)->CreateResume(unwrap(Exn))); in LLVMBuildResume()
2276 return wrap(unwrap(B)->CreateUnreachable()); in LLVMBuildUnreachable()
2301 return wrap(unwrap(B)->CreateAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAdd()
2306 return wrap(unwrap(B)->CreateNSWAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWAdd()
2311 return wrap(unwrap(B)->CreateNUWAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWAdd()
2316 return wrap(unwrap(B)->CreateFAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFAdd()
2321 return wrap(unwrap(B)->CreateSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSub()
2326 return wrap(unwrap(B)->CreateNSWSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWSub()
2331 return wrap(unwrap(B)->CreateNUWSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWSub()
2336 return wrap(unwrap(B)->CreateFSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFSub()
2341 return wrap(unwrap(B)->CreateMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildMul()
2346 return wrap(unwrap(B)->CreateNSWMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWMul()
2351 return wrap(unwrap(B)->CreateNUWMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWMul()
2356 return wrap(unwrap(B)->CreateFMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFMul()
2361 return wrap(unwrap(B)->CreateUDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildUDiv()
2366 return wrap(unwrap(B)->CreateSDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSDiv()
2371 return wrap(unwrap(B)->CreateExactSDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildExactSDiv()
2376 return wrap(unwrap(B)->CreateFDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFDiv()
2381 return wrap(unwrap(B)->CreateURem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildURem()
2386 return wrap(unwrap(B)->CreateSRem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSRem()
2391 return wrap(unwrap(B)->CreateFRem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFRem()
2396 return wrap(unwrap(B)->CreateShl(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildShl()
2401 return wrap(unwrap(B)->CreateLShr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildLShr()
2406 return wrap(unwrap(B)->CreateAShr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAShr()
2411 return wrap(unwrap(B)->CreateAnd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAnd()
2416 return wrap(unwrap(B)->CreateOr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildOr()
2421 return wrap(unwrap(B)->CreateXor(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildXor()
2427 return wrap(unwrap(B)->CreateBinOp(Instruction::BinaryOps(map_from_llvmopcode(Op)), unwrap(LHS), in LLVMBuildBinOp()
2432 return wrap(unwrap(B)->CreateNeg(unwrap(V), Name)); in LLVMBuildNeg()
2437 return wrap(unwrap(B)->CreateNSWNeg(unwrap(V), Name)); in LLVMBuildNSWNeg()
2442 return wrap(unwrap(B)->CreateNUWNeg(unwrap(V), Name)); in LLVMBuildNUWNeg()
2446 return wrap(unwrap(B)->CreateFNeg(unwrap(V), Name)); in LLVMBuildFNeg()
2450 return wrap(unwrap(B)->CreateNot(unwrap(V), Name)); in LLVMBuildNot()
2463 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildMalloc()
2474 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildArrayMalloc()
2479 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), nullptr, Name)); in LLVMBuildAlloca()
2484 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), unwrap(Val), Name)); in LLVMBuildArrayAlloca()
2488 return wrap(unwrap(B)->Insert( in LLVMBuildFree()
2495 return wrap(unwrap(B)->CreateLoad(unwrap(PointerVal), Name)); in LLVMBuildLoad()
2500 return wrap(unwrap(B)->CreateStore(unwrap(Val), unwrap(PointerVal))); in LLVMBuildStore()
2520 return wrap( in LLVMBuildFence()
2530 return wrap(unwrap(B)->CreateGEP(nullptr, unwrap(Pointer), IdxList, Name)); in LLVMBuildGEP()
2537 return wrap( in LLVMBuildInBoundsGEP()
2543 return wrap(unwrap(B)->CreateStructGEP(nullptr, unwrap(Pointer), Idx, Name)); in LLVMBuildStructGEP()
2548 return wrap(unwrap(B)->CreateGlobalString(Str, Name)); in LLVMBuildGlobalString()
2553 return wrap(unwrap(B)->CreateGlobalStringPtr(Str, Name)); in LLVMBuildGlobalStringPtr()
2574 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildTrunc()
2579 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildZExt()
2584 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildSExt()
2589 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToUI()
2594 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToSI()
2599 return wrap(unwrap(B)->CreateUIToFP(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildUIToFP()
2604 return wrap(unwrap(B)->CreateSIToFP(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildSIToFP()
2609 return wrap(unwrap(B)->CreateFPTrunc(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPTrunc()
2614 return wrap(unwrap(B)->CreateFPExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPExt()
2619 return wrap(unwrap(B)->CreatePtrToInt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildPtrToInt()
2624 return wrap(unwrap(B)->CreateIntToPtr(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildIntToPtr()
2629 return wrap(unwrap(B)->CreateBitCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildBitCast()
2634 return wrap(unwrap(B)->CreateAddrSpaceCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildAddrSpaceCast()
2639 return wrap(unwrap(B)->CreateZExtOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildZExtOrBitCast()
2645 return wrap(unwrap(B)->CreateSExtOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildSExtOrBitCast()
2651 return wrap(unwrap(B)->CreateTruncOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildTruncOrBitCast()
2657 return wrap(unwrap(B)->CreateCast(Instruction::CastOps(map_from_llvmopcode(Op)), unwrap(Val), in LLVMBuildCast()
2663 return wrap(unwrap(B)->CreatePointerCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildPointerCast()
2668 return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), in LLVMBuildIntCast()
2674 return wrap(unwrap(B)->CreateFPCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPCast()
2682 return wrap(unwrap(B)->CreateICmp(static_cast<ICmpInst::Predicate>(Op), in LLVMBuildICmp()
2689 return wrap(unwrap(B)->CreateFCmp(static_cast<FCmpInst::Predicate>(Op), in LLVMBuildFCmp()
2696 return wrap(unwrap(B)->CreatePHI(unwrap(Ty), 0, Name)); in LLVMBuildPhi()
2702 return wrap(unwrap(B)->CreateCall(unwrap(Fn), in LLVMBuildCall()
2710 return wrap(unwrap(B)->CreateSelect(unwrap(If), unwrap(Then), unwrap(Else), in LLVMBuildSelect()
2716 return wrap(unwrap(B)->CreateVAArg(unwrap(List), unwrap(Ty), Name)); in LLVMBuildVAArg()
2721 return wrap(unwrap(B)->CreateExtractElement(unwrap(VecVal), unwrap(Index), in LLVMBuildExtractElement()
2728 return wrap(unwrap(B)->CreateInsertElement(unwrap(VecVal), unwrap(EltVal), in LLVMBuildInsertElement()
2735 return wrap(unwrap(B)->CreateShuffleVector(unwrap(V1), unwrap(V2), in LLVMBuildShuffleVector()
2741 return wrap(unwrap(B)->CreateExtractValue(unwrap(AggVal), Index, Name)); in LLVMBuildExtractValue()
2747 return wrap(unwrap(B)->CreateInsertValue(unwrap(AggVal), unwrap(EltVal), in LLVMBuildInsertValue()
2753 return wrap(unwrap(B)->CreateIsNull(unwrap(Val), Name)); in LLVMBuildIsNull()
2758 return wrap(unwrap(B)->CreateIsNotNull(unwrap(Val), Name)); in LLVMBuildIsNotNull()
2763 return wrap(unwrap(B)->CreatePtrDiff(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildPtrDiff()
2784 return wrap(unwrap(B)->CreateAtomicRMW(intop, unwrap(PTR), unwrap(Val), in LLVMBuildAtomicRMW()
2813 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile()
2824 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()
2834 return wrap(MemoryBuffer::getMemBuffer(StringRef(InputData, InputDataLength), in LLVMCreateMemoryBufferWithMemoryRange()
2844 return wrap( in LLVMCreateMemoryBufferWithMemoryRangeCopy()
2864 return wrap(PassRegistry::getPassRegistry()); in LLVMGetGlobalPassRegistry()
2870 return wrap(new legacy::PassManager()); in LLVMCreatePassManager()
2874 return wrap(new legacy::FunctionPassManager(unwrap(M))); in LLVMCreateFunctionPassManagerForModule()