Lines Matching refs:wrap
80 return wrap(new LLVMContext()); in LLVMContextCreate()
83 LLVMContextRef LLVMGetGlobalContext() { return wrap(&*GlobalContext); } in LLVMGetGlobalContext()
144 return wrap(Attribute::get(*unwrap(C), (Attribute::AttrKind)KindID, Val)); in LLVMCreateEnumAttribute()
161 return wrap(Attribute::get(*unwrap(C), StringRef(K, KLength), in LLVMCreateStringAttribute()
223 return wrap(new Module(ModuleID, *GlobalContext)); in LLVMModuleCreateWithName()
228 return wrap(new Module(ModuleID, *unwrap(C))); in LLVMModuleCreateWithNameInContext()
335 Result[i].Metadata = wrap(ModuleFlag.Val); in LLVMCopyModuleFlagsMetadata()
370 return wrap(unwrap(M)->getModuleFlag({Key, KeyLen})); in LLVMGetModuleFlag()
452 return wrap(InlineAsm::get(unwrap<FunctionType>(Ty), in LLVMGetInlineAsm()
461 return wrap(&unwrap(M)->getContext()); in LLVMGetModuleContext()
515 return wrap(&unwrap(Ty)->getContext()); in LLVMGetTypeContext()
557 return wrap(IntegerType::get(*unwrap(C), NumBits)); in LLVMIntTypeInContext()
638 return wrap(FunctionType::get(unwrap(ReturnType), Tys, IsVarArg != 0)); in LLVMFunctionType()
646 return wrap(unwrap<FunctionType>(FunctionTy)->getReturnType()); in LLVMGetReturnType()
657 *Dest++ = wrap(*I); in LLVMGetParamTypes()
665 return wrap(StructType::get(*unwrap(C), Tys, Packed != 0)); in LLVMStructTypeInContext()
676 return wrap(StructType::create(*unwrap(C), Name)); in LLVMStructCreateNamed()
701 *Dest++ = wrap(*I); in LLVMGetStructElementTypes()
706 return wrap(Ty->getTypeAtIndex(i)); in LLVMStructGetTypeAtIndex()
722 return wrap(unwrap(M)->getTypeByName(Name)); in LLVMGetTypeByName()
730 Arr[i] = wrap(T); in LLVMGetSubtypes()
736 return wrap(ArrayType::get(unwrap(ElementType), ElementCount)); in LLVMArrayType()
740 return wrap(PointerType::get(unwrap(ElementType), AddressSpace)); in LLVMPointerType()
744 return wrap(VectorType::get(unwrap(ElementType), ElementCount)); in LLVMVectorType()
750 return wrap(PTy->getElementType()); in LLVMGetElementType()
751 return wrap(cast<SequentialType>(Ty)->getElementType()); in LLVMGetElementType()
773 return wrap(Type::getVoidTy(*unwrap(C))); in LLVMVoidTypeInContext()
776 return wrap(Type::getLabelTy(*unwrap(C))); in LLVMLabelTypeInContext()
779 return wrap(Type::getTokenTy(*unwrap(C))); in LLVMTokenTypeInContext()
782 return wrap(Type::getMetadataTy(*unwrap(C))); in LLVMMetadataTypeInContext()
797 return wrap(unwrap(Val)->getType()); in LLVMTypeOf()
859 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata()
901 Result[i].Metadata = wrap(ModuleFlag.second); in llvm_getMetadata()
919 return wrap(static_cast<Value*>(dyn_cast_or_null<name>(unwrap(Val)))); \
945 return wrap(&*I); in LLVMGetFirstUse()
951 return wrap(Next); in LLVMGetNextUse()
956 return wrap(unwrap(U)->getUser()); in LLVMGetUser()
960 return wrap(unwrap(U)->get()); in LLVMGetUsedValue()
971 return wrap(C->getValue()); in getMDNodeOperandImpl()
972 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl()
980 return wrap(L->getValue()); in LLVMGetOperand()
986 return wrap(cast<User>(V)->getOperand(Index)); in LLVMGetOperand()
991 return wrap(&cast<User>(V)->getOperandUse(Index)); in LLVMGetOperandUse()
1009 return wrap(Constant::getNullValue(unwrap(Ty))); in LLVMConstNull()
1013 return wrap(Constant::getAllOnesValue(unwrap(Ty))); in LLVMConstAllOnes()
1017 return wrap(UndefValue::get(unwrap(Ty))); in LLVMGetUndef()
1035 return wrap(ConstantPointerNull::get(unwrap<PointerType>(Ty))); in LLVMConstPointerNull()
1043 return wrap(MetadataAsValue::get( in LLVMMDStringInContext()
1070 return wrap(MetadataAsValue::get(Context, LocalAsMetadata::get(V))); in LLVMMDNodeInContext()
1075 return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs))); in LLVMMDNodeInContext()
1083 return wrap(MetadataAsValue::get(*unwrap(C), unwrap(MD))); in LLVMMetadataAsValue()
1089 return wrap(ConstantAsMetadata::get(C)); in LLVMValueAsMetadata()
1091 return wrap(MAV->getMetadata()); in LLVMValueAsMetadata()
1092 return wrap(ValueAsMetadata::get(V)); in LLVMValueAsMetadata()
1117 return wrap(&*I); in LLVMGetFirstNamedMetadata()
1125 return wrap(&*--I); in LLVMGetLastNamedMetadata()
1133 return wrap(&*I); in LLVMGetNextNamedMetadata()
1141 return wrap(&*--I); in LLVMGetPreviousNamedMetadata()
1146 return wrap(unwrap(M)->getNamedMetadata(StringRef(Name, NameLen))); in LLVMGetNamedMetadata()
1151 return wrap(unwrap(M)->getOrInsertNamedMetadata({Name, NameLen})); in LLVMGetOrInsertNamedMetadata()
1163 *Dest = wrap(MDV->getValue()); in LLVMGetMDNodeOperands()
1187 Dest[i] = wrap(MetadataAsValue::get(Context, N->getOperand(i))); in LLVMGetNamedMetadataOperands()
1276 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), N, SignExtend != 0)); in LLVMConstInt()
1283 return wrap(ConstantInt::get(Ty->getContext(), in LLVMConstIntOfArbitraryPrecision()
1290 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), StringRef(Str), in LLVMConstIntOfString()
1296 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), StringRef(Str, SLen), in LLVMConstIntOfStringAndSize()
1301 return wrap(ConstantFP::get(unwrap(RealTy), N)); in LLVMConstReal()
1305 return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Text))); in LLVMConstRealOfString()
1310 return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Str, SLen))); in LLVMConstRealOfStringAndSize()
1349 return wrap(ConstantDataArray::getString(*unwrap(C), StringRef(Str, Length), in LLVMConstStringInContext()
1360 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
1376 return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V)); in LLVMConstArray()
1383 return wrap(ConstantStruct::getAnon(*unwrap(C), makeArrayRef(Elements, Count), in LLVMConstStructInContext()
1399 return wrap(ConstantStruct::get(Ty, makeArrayRef(Elements, Count))); in LLVMConstNamedStruct()
1403 return wrap(ConstantVector::get(makeArrayRef( in LLVMConstVector()
1436 return wrap(ConstantExpr::getAlignOf(unwrap(Ty))); in LLVMAlignOf()
1440 return wrap(ConstantExpr::getSizeOf(unwrap(Ty))); in LLVMSizeOf()
1444 return wrap(ConstantExpr::getNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNeg()
1448 return wrap(ConstantExpr::getNSWNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNSWNeg()
1452 return wrap(ConstantExpr::getNUWNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNUWNeg()
1457 return wrap(ConstantExpr::getFNeg(unwrap<Constant>(ConstantVal))); in LLVMConstFNeg()
1461 return wrap(ConstantExpr::getNot(unwrap<Constant>(ConstantVal))); in LLVMConstNot()
1465 return wrap(ConstantExpr::getAdd(unwrap<Constant>(LHSConstant), in LLVMConstAdd()
1471 return wrap(ConstantExpr::getNSWAdd(unwrap<Constant>(LHSConstant), in LLVMConstNSWAdd()
1477 return wrap(ConstantExpr::getNUWAdd(unwrap<Constant>(LHSConstant), in LLVMConstNUWAdd()
1482 return wrap(ConstantExpr::getFAdd(unwrap<Constant>(LHSConstant), in LLVMConstFAdd()
1487 return wrap(ConstantExpr::getSub(unwrap<Constant>(LHSConstant), in LLVMConstSub()
1493 return wrap(ConstantExpr::getNSWSub(unwrap<Constant>(LHSConstant), in LLVMConstNSWSub()
1499 return wrap(ConstantExpr::getNUWSub(unwrap<Constant>(LHSConstant), in LLVMConstNUWSub()
1504 return wrap(ConstantExpr::getFSub(unwrap<Constant>(LHSConstant), in LLVMConstFSub()
1509 return wrap(ConstantExpr::getMul(unwrap<Constant>(LHSConstant), in LLVMConstMul()
1515 return wrap(ConstantExpr::getNSWMul(unwrap<Constant>(LHSConstant), in LLVMConstNSWMul()
1521 return wrap(ConstantExpr::getNUWMul(unwrap<Constant>(LHSConstant), in LLVMConstNUWMul()
1526 return wrap(ConstantExpr::getFMul(unwrap<Constant>(LHSConstant), in LLVMConstFMul()
1531 return wrap(ConstantExpr::getUDiv(unwrap<Constant>(LHSConstant), in LLVMConstUDiv()
1537 return wrap(ConstantExpr::getExactUDiv(unwrap<Constant>(LHSConstant), in LLVMConstExactUDiv()
1542 return wrap(ConstantExpr::getSDiv(unwrap<Constant>(LHSConstant), in LLVMConstSDiv()
1548 return wrap(ConstantExpr::getExactSDiv(unwrap<Constant>(LHSConstant), in LLVMConstExactSDiv()
1553 return wrap(ConstantExpr::getFDiv(unwrap<Constant>(LHSConstant), in LLVMConstFDiv()
1558 return wrap(ConstantExpr::getURem(unwrap<Constant>(LHSConstant), in LLVMConstURem()
1563 return wrap(ConstantExpr::getSRem(unwrap<Constant>(LHSConstant), in LLVMConstSRem()
1568 return wrap(ConstantExpr::getFRem(unwrap<Constant>(LHSConstant), in LLVMConstFRem()
1573 return wrap(ConstantExpr::getAnd(unwrap<Constant>(LHSConstant), in LLVMConstAnd()
1578 return wrap(ConstantExpr::getOr(unwrap<Constant>(LHSConstant), in LLVMConstOr()
1583 return wrap(ConstantExpr::getXor(unwrap<Constant>(LHSConstant), in LLVMConstXor()
1589 return wrap(ConstantExpr::getICmp(Predicate, in LLVMConstICmp()
1596 return wrap(ConstantExpr::getFCmp(Predicate, in LLVMConstFCmp()
1602 return wrap(ConstantExpr::getShl(unwrap<Constant>(LHSConstant), in LLVMConstShl()
1607 return wrap(ConstantExpr::getLShr(unwrap<Constant>(LHSConstant), in LLVMConstLShr()
1612 return wrap(ConstantExpr::getAShr(unwrap<Constant>(LHSConstant), in LLVMConstAShr()
1623 return wrap(ConstantExpr::getGetElementPtr(Ty, Val, IdxList)); in LLVMConstGEP()
1634 return wrap(ConstantExpr::getInBoundsGetElementPtr(Ty, Val, IdxList)); in LLVMConstInBoundsGEP()
1638 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
1643 return wrap(ConstantExpr::getSExt(unwrap<Constant>(ConstantVal), in LLVMConstSExt()
1648 return wrap(ConstantExpr::getZExt(unwrap<Constant>(ConstantVal), in LLVMConstZExt()
1653 return wrap(ConstantExpr::getFPTrunc(unwrap<Constant>(ConstantVal), in LLVMConstFPTrunc()
1658 return wrap(ConstantExpr::getFPExtend(unwrap<Constant>(ConstantVal), in LLVMConstFPExt()
1663 return wrap(ConstantExpr::getUIToFP(unwrap<Constant>(ConstantVal), in LLVMConstUIToFP()
1668 return wrap(ConstantExpr::getSIToFP(unwrap<Constant>(ConstantVal), in LLVMConstSIToFP()
1673 return wrap(ConstantExpr::getFPToUI(unwrap<Constant>(ConstantVal), in LLVMConstFPToUI()
1678 return wrap(ConstantExpr::getFPToSI(unwrap<Constant>(ConstantVal), in LLVMConstFPToSI()
1683 return wrap(ConstantExpr::getPtrToInt(unwrap<Constant>(ConstantVal), in LLVMConstPtrToInt()
1688 return wrap(ConstantExpr::getIntToPtr(unwrap<Constant>(ConstantVal), in LLVMConstIntToPtr()
1693 return wrap(ConstantExpr::getBitCast(unwrap<Constant>(ConstantVal), in LLVMConstBitCast()
1699 return wrap(ConstantExpr::getAddrSpaceCast(unwrap<Constant>(ConstantVal), in LLVMConstAddrSpaceCast()
1705 return wrap(ConstantExpr::getZExtOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstZExtOrBitCast()
1711 return wrap(ConstantExpr::getSExtOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstSExtOrBitCast()
1717 return wrap(ConstantExpr::getTruncOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstTruncOrBitCast()
1723 return wrap(ConstantExpr::getPointerCast(unwrap<Constant>(ConstantVal), in LLVMConstPointerCast()
1729 return wrap(ConstantExpr::getIntegerCast(unwrap<Constant>(ConstantVal), in LLVMConstIntCast()
1734 return wrap(ConstantExpr::getFPCast(unwrap<Constant>(ConstantVal), in LLVMConstFPCast()
1741 return wrap(ConstantExpr::getSelect(unwrap<Constant>(ConstantCondition), in LLVMConstSelect()
1748 return wrap(ConstantExpr::getExtractElement(unwrap<Constant>(VectorConstant), in LLVMConstExtractElement()
1755 return wrap(ConstantExpr::getInsertElement(unwrap<Constant>(VectorConstant), in LLVMConstInsertElement()
1763 return wrap(ConstantExpr::getShuffleVector(unwrap<Constant>(VectorAConstant), in LLVMConstShuffleVector()
1770 return wrap(ConstantExpr::getExtractValue(unwrap<Constant>(AggConstant), in LLVMConstExtractValue()
1777 return wrap(ConstantExpr::getInsertValue(unwrap<Constant>(AggConstant), in LLVMConstInsertValue()
1786 return wrap(InlineAsm::get(dyn_cast<FunctionType>(unwrap(Ty)), AsmString, in LLVMConstInlineAsm()
1791 return wrap(BlockAddress::get(unwrap<Function>(F), unwrap(BB))); in LLVMBlockAddress()
1797 return wrap(unwrap<GlobalValue>(Global)->getParent()); in LLVMGetGlobalParent()
1964 return wrap(unwrap<GlobalValue>(Global)->getValueType()); in LLVMGlobalGetValueType()
2045 return wrap(new GlobalVariable(*unwrap(M), unwrap(Ty), false, in LLVMAddGlobal()
2052 return wrap(new GlobalVariable(*unwrap(M), unwrap(Ty), false, in LLVMAddGlobalInAddressSpace()
2059 return wrap(unwrap(M)->getNamedGlobal(Name)); in LLVMGetNamedGlobal()
2067 return wrap(&*I); in LLVMGetFirstGlobal()
2075 return wrap(&*--I); in LLVMGetLastGlobal()
2083 return wrap(&*I); in LLVMGetNextGlobal()
2091 return wrap(&*--I); in LLVMGetPreviousGlobal()
2102 return wrap(GV->getInitializer()); in LLVMGetInitializer()
2178 return wrap(GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(), in LLVMAddAlias()
2185 return wrap(unwrap(M)->getNamedAlias(Name)); in LLVMGetNamedGlobalAlias()
2193 return wrap(&*I); in LLVMGetFirstGlobalAlias()
2201 return wrap(&*--I); in LLVMGetLastGlobalAlias()
2209 return wrap(&*I); in LLVMGetNextGlobalAlias()
2217 return wrap(&*--I); in LLVMGetPreviousGlobalAlias()
2221 return wrap(unwrap<GlobalAlias>(Alias)->getAliasee()); in LLVMAliasGetAliasee()
2232 return wrap(Function::Create(unwrap<FunctionType>(FunctionTy), in LLVMAddFunction()
2237 return wrap(unwrap(M)->getFunction(Name)); in LLVMGetNamedFunction()
2245 return wrap(&*I); in LLVMGetFirstFunction()
2253 return wrap(&*--I); in LLVMGetLastFunction()
2261 return wrap(&*I); in LLVMGetNextFunction()
2269 return wrap(&*--I); in LLVMGetPreviousFunction()
2281 return wrap(unwrap<Function>(Fn)->getPersonalityFn()); in LLVMGetPersonalityFn()
2305 return wrap(llvm::Intrinsic::getDeclaration(unwrap(Mod), IID, Tys)); in LLVMGetIntrinsicDeclaration()
2319 return wrap(llvm::Intrinsic::getType(*unwrap(Ctx), IID, Tys)); in LLVMIntrinsicGetType()
2374 *Attrs++ = wrap(A); in LLVMGetAttributesAtIndex()
2380 return wrap(unwrap<Function>(F)->getAttribute(Idx, in LLVMGetEnumAttributeAtIndex()
2387 return wrap(unwrap<Function>(F)->getAttribute(Idx, StringRef(K, KLen))); in LLVMGetStringAttributeAtIndex()
2419 *ParamRefs++ = wrap(&*I); in LLVMGetParams()
2424 return wrap(&Fn->arg_begin()[index]); in LLVMGetParam()
2428 return wrap(unwrap<Argument>(V)->getParent()); in LLVMGetParamParent()
2436 return wrap(&*I); in LLVMGetFirstParam()
2444 return wrap(&*--I); in LLVMGetLastParam()
2452 return wrap(&Fn->arg_begin()[A->getArgNo() + 1]); in LLVMGetNextParam()
2459 return wrap(&A->getParent()->arg_begin()[A->getArgNo() - 1]); in LLVMGetPreviousParam()
2470 return wrap(static_cast<Value*>(unwrap(BB))); in LLVMBasicBlockAsValue()
2478 return wrap(unwrap<BasicBlock>(Val)); in LLVMValueAsBasicBlock()
2486 return wrap(unwrap(BB)->getParent()); in LLVMGetBasicBlockParent()
2490 return wrap(unwrap(BB)->getTerminator()); in LLVMGetBasicBlockTerminator()
2500 *BasicBlocksRefs++ = wrap(&BB); in LLVMGetBasicBlocks()
2504 return wrap(&unwrap<Function>(Fn)->getEntryBlock()); in LLVMGetEntryBasicBlock()
2512 return wrap(&*I); in LLVMGetFirstBasicBlock()
2520 return wrap(&*--I); in LLVMGetLastBasicBlock()
2528 return wrap(&*I); in LLVMGetNextBasicBlock()
2536 return wrap(&*--I); in LLVMGetPreviousBasicBlock()
2541 return wrap(llvm::BasicBlock::Create(*unwrap(C), Name)); in LLVMCreateBasicBlockInContext()
2547 return wrap(BasicBlock::Create(*unwrap(C), Name, unwrap<Function>(FnRef))); in LLVMAppendBasicBlockInContext()
2558 return wrap(BasicBlock::Create(*unwrap(C), Name, BB->getParent(), BB)); in LLVMInsertBasicBlockInContext()
2585 return wrap(unwrap<Instruction>(Inst)->getParent()); in LLVMGetInstructionParent()
2593 return wrap(&*I); in LLVMGetFirstInstruction()
2601 return wrap(&*--I); in LLVMGetLastInstruction()
2609 return wrap(&*I); in LLVMGetNextInstruction()
2617 return wrap(&*--I); in LLVMGetPreviousInstruction()
2654 return wrap(C->clone()); in LLVMInstructionClone()
2660 return (I && I->isTerminator()) ? wrap(I) : nullptr; in LLVMIsATerminatorInst()
2705 *Attrs++ = wrap(A); in LLVMGetCallSiteAttributes()
2711 return wrap( in LLVMGetCallSiteEnumAttribute()
2718 return wrap(unwrap<CallBase>(C)->getAttribute(Idx, StringRef(K, KLen))); in LLVMGetCallSiteStringAttribute()
2732 return wrap(unwrap<CallBase>(Instr)->getCalledValue()); in LLVMGetCalledValue()
2736 return wrap(unwrap<CallBase>(Instr)->getFunctionType()); in LLVMGetCalledFunctionType()
2752 return wrap(unwrap<InvokeInst>(Invoke)->getNormalDest()); in LLVMGetNormalDest()
2757 return wrap(CRI->getUnwindDest()); in LLVMGetUnwindDest()
2759 return wrap(CSI->getUnwindDest()); in LLVMGetUnwindDest()
2761 return wrap(unwrap<InvokeInst>(Invoke)->getUnwindDest()); in LLVMGetUnwindDest()
2784 return wrap(unwrap<Instruction>(Term)->getSuccessor(i)); in LLVMGetSuccessor()
2798 return wrap(unwrap<BranchInst>(Branch)->getCondition()); in LLVMGetCondition()
2808 return wrap(unwrap<SwitchInst>(Switch)->getDefaultDest()); in LLVMGetSwitchDefaultDest()
2814 return wrap(unwrap<AllocaInst>(Alloca)->getAllocatedType()); in LLVMGetAllocatedType()
2841 return wrap(unwrap<PHINode>(PhiNode)->getIncomingValue(Index)); in LLVMGetIncomingValue()
2845 return wrap(unwrap<PHINode>(PhiNode)->getIncomingBlock(Index)); in LLVMGetIncomingBlock()
2880 return wrap(new IRBuilder<>(*unwrap(C))); in LLVMCreateBuilderInContext()
2905 return wrap(unwrap(Builder)->GetInsertBlock()); in LLVMGetInsertBlock()
2935 return wrap(MetadataAsValue::get( in LLVMGetCurrentDebugLocation()
2947 return wrap(unwrap(B)->CreateRetVoid()); in LLVMBuildRetVoid()
2951 return wrap(unwrap(B)->CreateRet(unwrap(V))); in LLVMBuildRet()
2956 return wrap(unwrap(B)->CreateAggregateRet(unwrap(RetVals), N)); in LLVMBuildAggregateRet()
2960 return wrap(unwrap(B)->CreateBr(unwrap(Dest))); in LLVMBuildBr()
2965 return wrap(unwrap(B)->CreateCondBr(unwrap(If), unwrap(Then), unwrap(Else))); in LLVMBuildCondBr()
2970 return wrap(unwrap(B)->CreateSwitch(unwrap(V), unwrap(Else), NumCases)); in LLVMBuildSwitch()
2975 return wrap(unwrap(B)->CreateIndirectBr(unwrap(Addr), NumDests)); in LLVMBuildIndirectBr()
2986 return wrap( in LLVMBuildInvoke()
2995 return wrap(unwrap(B)->CreateInvoke( in LLVMBuildInvoke2()
3009 return wrap(unwrap(B)->CreateLandingPad(unwrap(Ty), NumClauses, Name)); in LLVMBuildLandingPad()
3015 return wrap(unwrap(B)->CreateCatchPad(unwrap(ParentPad), in LLVMBuildCatchPad()
3025 ParentPad = wrap(Constant::getNullValue(Ty)); in LLVMBuildCleanupPad()
3027 return wrap(unwrap(B)->CreateCleanupPad(unwrap(ParentPad), in LLVMBuildCleanupPad()
3033 return wrap(unwrap(B)->CreateResume(unwrap(Exn))); in LLVMBuildResume()
3041 ParentPad = wrap(Constant::getNullValue(Ty)); in LLVMBuildCatchSwitch()
3043 return wrap(unwrap(B)->CreateCatchSwitch(unwrap(ParentPad), unwrap(UnwindBB), in LLVMBuildCatchSwitch()
3049 return wrap(unwrap(B)->CreateCatchRet(unwrap<CatchPadInst>(CatchPad), in LLVMBuildCatchRet()
3055 return wrap(unwrap(B)->CreateCleanupRet(unwrap<CleanupPadInst>(CatchPad), in LLVMBuildCleanupRet()
3060 return wrap(unwrap(B)->CreateUnreachable()); in LLVMBuildUnreachable()
3077 return wrap(unwrap<LandingPadInst>(LandingPad)->getClause(Idx)); in LLVMGetClause()
3105 *Handlers++ = wrap(*I); in LLVMGetHandlers()
3109 return wrap(unwrap<CatchPadInst>(CatchPad)->getCatchSwitch()); in LLVMGetParentCatchSwitch()
3120 return wrap(unwrap<FuncletPadInst>(Funclet)->getArgOperand(i)); in LLVMGetArgOperand()
3131 return wrap(unwrap(B)->CreateAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAdd()
3136 return wrap(unwrap(B)->CreateNSWAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWAdd()
3141 return wrap(unwrap(B)->CreateNUWAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWAdd()
3146 return wrap(unwrap(B)->CreateFAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFAdd()
3151 return wrap(unwrap(B)->CreateSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSub()
3156 return wrap(unwrap(B)->CreateNSWSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWSub()
3161 return wrap(unwrap(B)->CreateNUWSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWSub()
3166 return wrap(unwrap(B)->CreateFSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFSub()
3171 return wrap(unwrap(B)->CreateMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildMul()
3176 return wrap(unwrap(B)->CreateNSWMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWMul()
3181 return wrap(unwrap(B)->CreateNUWMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWMul()
3186 return wrap(unwrap(B)->CreateFMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFMul()
3191 return wrap(unwrap(B)->CreateUDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildUDiv()
3196 return wrap(unwrap(B)->CreateExactUDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildExactUDiv()
3201 return wrap(unwrap(B)->CreateSDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSDiv()
3206 return wrap(unwrap(B)->CreateExactSDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildExactSDiv()
3211 return wrap(unwrap(B)->CreateFDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFDiv()
3216 return wrap(unwrap(B)->CreateURem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildURem()
3221 return wrap(unwrap(B)->CreateSRem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSRem()
3226 return wrap(unwrap(B)->CreateFRem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFRem()
3231 return wrap(unwrap(B)->CreateShl(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildShl()
3236 return wrap(unwrap(B)->CreateLShr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildLShr()
3241 return wrap(unwrap(B)->CreateAShr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAShr()
3246 return wrap(unwrap(B)->CreateAnd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAnd()
3251 return wrap(unwrap(B)->CreateOr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildOr()
3256 return wrap(unwrap(B)->CreateXor(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildXor()
3262 return wrap(unwrap(B)->CreateBinOp(Instruction::BinaryOps(map_from_llvmopcode(Op)), unwrap(LHS), in LLVMBuildBinOp()
3267 return wrap(unwrap(B)->CreateNeg(unwrap(V), Name)); in LLVMBuildNeg()
3272 return wrap(unwrap(B)->CreateNSWNeg(unwrap(V), Name)); in LLVMBuildNSWNeg()
3277 return wrap(unwrap(B)->CreateNUWNeg(unwrap(V), Name)); in LLVMBuildNUWNeg()
3281 return wrap(unwrap(B)->CreateFNeg(unwrap(V), Name)); in LLVMBuildFNeg()
3285 return wrap(unwrap(B)->CreateNot(unwrap(V), Name)); in LLVMBuildNot()
3298 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildMalloc()
3309 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildArrayMalloc()
3315 return wrap(unwrap(B)->CreateMemSet(unwrap(Ptr), unwrap(Val), unwrap(Len), Align)); in LLVMBuildMemSet()
3322 return wrap(unwrap(B)->CreateMemCpy(unwrap(Dst), DstAlign, in LLVMBuildMemCpy()
3331 return wrap(unwrap(B)->CreateMemMove(unwrap(Dst), DstAlign, in LLVMBuildMemMove()
3338 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), nullptr, Name)); in LLVMBuildAlloca()
3343 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), unwrap(Val), Name)); in LLVMBuildArrayAlloca()
3347 return wrap(unwrap(B)->Insert( in LLVMBuildFree()
3356 return wrap(unwrap(B)->CreateLoad(Ty->getElementType(), V, Name)); in LLVMBuildLoad()
3361 return wrap(unwrap(B)->CreateLoad(unwrap(Ty), unwrap(PointerVal), Name)); in LLVMBuildLoad2()
3366 return wrap(unwrap(B)->CreateStore(unwrap(Val), unwrap(PointerVal))); in LLVMBuildStore()
3405 return wrap( in LLVMBuildFence()
3419 return wrap(unwrap(B)->CreateGEP(Ty, Val, IdxList, Name)); in LLVMBuildGEP()
3426 return wrap(unwrap(B)->CreateGEP(unwrap(Ty), unwrap(Pointer), IdxList, Name)); in LLVMBuildGEP2()
3436 return wrap(unwrap(B)->CreateInBoundsGEP(Ty, Val, IdxList, Name)); in LLVMBuildInBoundsGEP()
3443 return wrap( in LLVMBuildInBoundsGEP2()
3452 return wrap(unwrap(B)->CreateStructGEP(Ty, Val, Idx, Name)); in LLVMBuildStructGEP()
3458 return wrap( in LLVMBuildStructGEP2()
3464 return wrap(unwrap(B)->CreateGlobalString(Str, Name)); in LLVMBuildGlobalString()
3469 return wrap(unwrap(B)->CreateGlobalStringPtr(Str, Name)); in LLVMBuildGlobalStringPtr()
3509 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildTrunc()
3514 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildZExt()
3519 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildSExt()
3524 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToUI()
3529 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToSI()
3534 return wrap(unwrap(B)->CreateUIToFP(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildUIToFP()
3539 return wrap(unwrap(B)->CreateSIToFP(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildSIToFP()
3544 return wrap(unwrap(B)->CreateFPTrunc(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPTrunc()
3549 return wrap(unwrap(B)->CreateFPExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPExt()
3554 return wrap(unwrap(B)->CreatePtrToInt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildPtrToInt()
3559 return wrap(unwrap(B)->CreateIntToPtr(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildIntToPtr()
3564 return wrap(unwrap(B)->CreateBitCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildBitCast()
3569 return wrap(unwrap(B)->CreateAddrSpaceCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildAddrSpaceCast()
3574 return wrap(unwrap(B)->CreateZExtOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildZExtOrBitCast()
3580 return wrap(unwrap(B)->CreateSExtOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildSExtOrBitCast()
3586 return wrap(unwrap(B)->CreateTruncOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildTruncOrBitCast()
3592 return wrap(unwrap(B)->CreateCast(Instruction::CastOps(map_from_llvmopcode(Op)), unwrap(Val), in LLVMBuildCast()
3598 return wrap(unwrap(B)->CreatePointerCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildPointerCast()
3604 return wrap( in LLVMBuildIntCast2()
3610 return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), in LLVMBuildIntCast()
3616 return wrap(unwrap(B)->CreateFPCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPCast()
3624 return wrap(unwrap(B)->CreateICmp(static_cast<ICmpInst::Predicate>(Op), in LLVMBuildICmp()
3631 return wrap(unwrap(B)->CreateFCmp(static_cast<FCmpInst::Predicate>(Op), in LLVMBuildFCmp()
3638 return wrap(unwrap(B)->CreatePHI(unwrap(Ty), 0, Name)); in LLVMBuildPhi()
3648 return wrap(unwrap(B)->CreateCall(FnT, unwrap(Fn), in LLVMBuildCall()
3656 return wrap(unwrap(B)->CreateCall(FTy, unwrap(Fn), in LLVMBuildCall2()
3663 return wrap(unwrap(B)->CreateSelect(unwrap(If), unwrap(Then), unwrap(Else), in LLVMBuildSelect()
3669 return wrap(unwrap(B)->CreateVAArg(unwrap(List), unwrap(Ty), Name)); in LLVMBuildVAArg()
3674 return wrap(unwrap(B)->CreateExtractElement(unwrap(VecVal), unwrap(Index), in LLVMBuildExtractElement()
3681 return wrap(unwrap(B)->CreateInsertElement(unwrap(VecVal), unwrap(EltVal), in LLVMBuildInsertElement()
3688 return wrap(unwrap(B)->CreateShuffleVector(unwrap(V1), unwrap(V2), in LLVMBuildShuffleVector()
3694 return wrap(unwrap(B)->CreateExtractValue(unwrap(AggVal), Index, Name)); in LLVMBuildExtractValue()
3700 return wrap(unwrap(B)->CreateInsertValue(unwrap(AggVal), unwrap(EltVal), in LLVMBuildInsertValue()
3706 return wrap(unwrap(B)->CreateIsNull(unwrap(Val), Name)); in LLVMBuildIsNull()
3711 return wrap(unwrap(B)->CreateIsNotNull(unwrap(Val), Name)); in LLVMBuildIsNotNull()
3716 return wrap(unwrap(B)->CreatePtrDiff(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildPtrDiff()
3737 return wrap(unwrap(B)->CreateAtomicRMW(intop, unwrap(PTR), unwrap(Val), in LLVMBuildAtomicRMW()
3748 return wrap(unwrap(B)->CreateAtomicCmpXchg(unwrap(Ptr), unwrap(Cmp), in LLVMBuildAtomicCmpXchg()
3823 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile()
3834 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()
3844 return wrap(MemoryBuffer::getMemBuffer(StringRef(InputData, InputDataLength), in LLVMCreateMemoryBufferWithMemoryRange()
3854 return wrap( in LLVMCreateMemoryBufferWithMemoryRangeCopy()
3874 return wrap(PassRegistry::getPassRegistry()); in LLVMGetGlobalPassRegistry()
3880 return wrap(new legacy::PassManager()); in LLVMCreatePassManager()
3884 return wrap(new legacy::FunctionPassManager(unwrap(M))); in LLVMCreateFunctionPassManagerForModule()