• Home
  • Raw
  • Download

Lines Matching full:wrap

80   return wrap(new LLVMContext());  in LLVMContextCreate()
83 LLVMContextRef LLVMGetGlobalContext() { return wrap(&*GlobalContext); } in LLVMGetGlobalContext()
136 return wrap(Attribute::get(*unwrap(C), (Attribute::AttrKind)KindID, Val)); in LLVMCreateEnumAttribute()
153 return wrap(Attribute::get(*unwrap(C), StringRef(K, KLength), in LLVMCreateStringAttribute()
215 return wrap(new Module(ModuleID, *GlobalContext)); in LLVMModuleCreateWithName()
220 return wrap(new Module(ModuleID, *unwrap(C))); in LLVMModuleCreateWithNameInContext()
303 return wrap(&unwrap(M)->getContext()); in LLVMGetModuleContext()
357 return wrap(&unwrap(Ty)->getContext()); in LLVMGetTypeContext()
399 return wrap(IntegerType::get(*unwrap(C), NumBits)); in LLVMIntTypeInContext()
483 return wrap(FunctionType::get(unwrap(ReturnType), Tys, IsVarArg != 0)); in LLVMFunctionType()
491 return wrap(unwrap<FunctionType>(FunctionTy)->getReturnType()); in LLVMGetReturnType()
502 *Dest++ = wrap(*I); in LLVMGetParamTypes()
510 return wrap(StructType::get(*unwrap(C), Tys, Packed != 0)); in LLVMStructTypeInContext()
521 return wrap(StructType::create(*unwrap(C), Name)); in LLVMStructCreateNamed()
546 *Dest++ = wrap(*I); in LLVMGetStructElementTypes()
551 return wrap(Ty->getTypeAtIndex(i)); in LLVMStructGetTypeAtIndex()
563 return wrap(unwrap(M)->getTypeByName(Name)); in LLVMGetTypeByName()
569 return wrap(ArrayType::get(unwrap(ElementType), ElementCount)); in LLVMArrayType()
573 return wrap(PointerType::get(unwrap(ElementType), AddressSpace)); in LLVMPointerType()
577 return wrap(VectorType::get(unwrap(ElementType), ElementCount)); in LLVMVectorType()
581 return wrap(unwrap<SequentialType>(Ty)->getElementType()); in LLVMGetElementType()
599 return wrap(Type::getVoidTy(*unwrap(C))); in LLVMVoidTypeInContext()
602 return wrap(Type::getLabelTy(*unwrap(C))); in LLVMLabelTypeInContext()
617 return wrap(unwrap(Val)->getType()); in LLVMTypeOf()
669 return wrap(MetadataAsValue::get(I->getContext(), MD)); in LLVMGetMetadata()
697 return wrap(static_cast<Value*>(dyn_cast_or_null<name>(unwrap(Val)))); \
723 return wrap(&*I); in LLVMGetFirstUse()
729 return wrap(Next); in LLVMGetNextUse()
734 return wrap(unwrap(U)->getUser()); in LLVMGetUser()
738 return wrap(unwrap(U)->get()); in LLVMGetUsedValue()
749 return wrap(C->getValue()); in getMDNodeOperandImpl()
750 return wrap(MetadataAsValue::get(Context, Op)); in getMDNodeOperandImpl()
758 return wrap(L->getValue()); in LLVMGetOperand()
764 return wrap(cast<User>(V)->getOperand(Index)); in LLVMGetOperand()
769 return wrap(&cast<User>(V)->getOperandUse(Index)); in LLVMGetOperandUse()
787 return wrap(Constant::getNullValue(unwrap(Ty))); in LLVMConstNull()
791 return wrap(Constant::getAllOnesValue(unwrap(Ty))); in LLVMConstAllOnes()
795 return wrap(UndefValue::get(unwrap(Ty))); in LLVMGetUndef()
813 return wrap(ConstantPointerNull::get(unwrap<PointerType>(Ty))); in LLVMConstPointerNull()
821 return wrap(MetadataAsValue::get( in LLVMMDStringInContext()
848 return wrap(MetadataAsValue::get(Context, LocalAsMetadata::get(V))); in LLVMMDNodeInContext()
853 return wrap(MetadataAsValue::get(Context, MDNode::get(Context, MDs))); in LLVMMDNodeInContext()
880 *Dest = wrap(MDV->getValue()); in LLVMGetMDNodeOperands()
904 Dest[i] = wrap(MetadataAsValue::get(Context, N->getOperand(i))); in LLVMGetNamedMetadataOperands()
921 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), N, SignExtend != 0)); in LLVMConstInt()
928 return wrap(ConstantInt::get(Ty->getContext(), in LLVMConstIntOfArbitraryPrecision()
935 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), StringRef(Str), in LLVMConstIntOfString()
941 return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), StringRef(Str, SLen), in LLVMConstIntOfStringAndSize()
946 return wrap(ConstantFP::get(unwrap(RealTy), N)); in LLVMConstReal()
950 return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Text))); in LLVMConstRealOfString()
955 return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Str, SLen))); in LLVMConstRealOfStringAndSize()
994 return wrap(ConstantDataArray::getString(*unwrap(C), StringRef(Str, Length), in LLVMConstStringInContext()
1005 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
1021 return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V)); in LLVMConstArray()
1028 return wrap(ConstantStruct::getAnon(*unwrap(C), makeArrayRef(Elements, Count), in LLVMConstStructInContext()
1044 return wrap(ConstantStruct::get(Ty, makeArrayRef(Elements, Count))); in LLVMConstNamedStruct()
1048 return wrap(ConstantVector::get(makeArrayRef( in LLVMConstVector()
1081 return wrap(ConstantExpr::getAlignOf(unwrap(Ty))); in LLVMAlignOf()
1085 return wrap(ConstantExpr::getSizeOf(unwrap(Ty))); in LLVMSizeOf()
1089 return wrap(ConstantExpr::getNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNeg()
1093 return wrap(ConstantExpr::getNSWNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNSWNeg()
1097 return wrap(ConstantExpr::getNUWNeg(unwrap<Constant>(ConstantVal))); in LLVMConstNUWNeg()
1102 return wrap(ConstantExpr::getFNeg(unwrap<Constant>(ConstantVal))); in LLVMConstFNeg()
1106 return wrap(ConstantExpr::getNot(unwrap<Constant>(ConstantVal))); in LLVMConstNot()
1110 return wrap(ConstantExpr::getAdd(unwrap<Constant>(LHSConstant), in LLVMConstAdd()
1116 return wrap(ConstantExpr::getNSWAdd(unwrap<Constant>(LHSConstant), in LLVMConstNSWAdd()
1122 return wrap(ConstantExpr::getNUWAdd(unwrap<Constant>(LHSConstant), in LLVMConstNUWAdd()
1127 return wrap(ConstantExpr::getFAdd(unwrap<Constant>(LHSConstant), in LLVMConstFAdd()
1132 return wrap(ConstantExpr::getSub(unwrap<Constant>(LHSConstant), in LLVMConstSub()
1138 return wrap(ConstantExpr::getNSWSub(unwrap<Constant>(LHSConstant), in LLVMConstNSWSub()
1144 return wrap(ConstantExpr::getNUWSub(unwrap<Constant>(LHSConstant), in LLVMConstNUWSub()
1149 return wrap(ConstantExpr::getFSub(unwrap<Constant>(LHSConstant), in LLVMConstFSub()
1154 return wrap(ConstantExpr::getMul(unwrap<Constant>(LHSConstant), in LLVMConstMul()
1160 return wrap(ConstantExpr::getNSWMul(unwrap<Constant>(LHSConstant), in LLVMConstNSWMul()
1166 return wrap(ConstantExpr::getNUWMul(unwrap<Constant>(LHSConstant), in LLVMConstNUWMul()
1171 return wrap(ConstantExpr::getFMul(unwrap<Constant>(LHSConstant), in LLVMConstFMul()
1176 return wrap(ConstantExpr::getUDiv(unwrap<Constant>(LHSConstant), in LLVMConstUDiv()
1181 return wrap(ConstantExpr::getSDiv(unwrap<Constant>(LHSConstant), in LLVMConstSDiv()
1187 return wrap(ConstantExpr::getExactSDiv(unwrap<Constant>(LHSConstant), in LLVMConstExactSDiv()
1192 return wrap(ConstantExpr::getFDiv(unwrap<Constant>(LHSConstant), in LLVMConstFDiv()
1197 return wrap(ConstantExpr::getURem(unwrap<Constant>(LHSConstant), in LLVMConstURem()
1202 return wrap(ConstantExpr::getSRem(unwrap<Constant>(LHSConstant), in LLVMConstSRem()
1207 return wrap(ConstantExpr::getFRem(unwrap<Constant>(LHSConstant), in LLVMConstFRem()
1212 return wrap(ConstantExpr::getAnd(unwrap<Constant>(LHSConstant), in LLVMConstAnd()
1217 return wrap(ConstantExpr::getOr(unwrap<Constant>(LHSConstant), in LLVMConstOr()
1222 return wrap(ConstantExpr::getXor(unwrap<Constant>(LHSConstant), in LLVMConstXor()
1228 return wrap(ConstantExpr::getICmp(Predicate, in LLVMConstICmp()
1235 return wrap(ConstantExpr::getFCmp(Predicate, in LLVMConstFCmp()
1241 return wrap(ConstantExpr::getShl(unwrap<Constant>(LHSConstant), in LLVMConstShl()
1246 return wrap(ConstantExpr::getLShr(unwrap<Constant>(LHSConstant), in LLVMConstLShr()
1251 return wrap(ConstantExpr::getAShr(unwrap<Constant>(LHSConstant), in LLVMConstAShr()
1259 return wrap(ConstantExpr::getGetElementPtr( in LLVMConstGEP()
1269 return wrap(ConstantExpr::getInBoundsGetElementPtr(nullptr, Val, IdxList)); in LLVMConstInBoundsGEP()
1273 return wrap(ConstantExpr::getTrunc(unwrap<Constant>(ConstantVal), in LLVMConstTrunc()
1278 return wrap(ConstantExpr::getSExt(unwrap<Constant>(ConstantVal), in LLVMConstSExt()
1283 return wrap(ConstantExpr::getZExt(unwrap<Constant>(ConstantVal), in LLVMConstZExt()
1288 return wrap(ConstantExpr::getFPTrunc(unwrap<Constant>(ConstantVal), in LLVMConstFPTrunc()
1293 return wrap(ConstantExpr::getFPExtend(unwrap<Constant>(ConstantVal), in LLVMConstFPExt()
1298 return wrap(ConstantExpr::getUIToFP(unwrap<Constant>(ConstantVal), in LLVMConstUIToFP()
1303 return wrap(ConstantExpr::getSIToFP(unwrap<Constant>(ConstantVal), in LLVMConstSIToFP()
1308 return wrap(ConstantExpr::getFPToUI(unwrap<Constant>(ConstantVal), in LLVMConstFPToUI()
1313 return wrap(ConstantExpr::getFPToSI(unwrap<Constant>(ConstantVal), in LLVMConstFPToSI()
1318 return wrap(ConstantExpr::getPtrToInt(unwrap<Constant>(ConstantVal), in LLVMConstPtrToInt()
1323 return wrap(ConstantExpr::getIntToPtr(unwrap<Constant>(ConstantVal), in LLVMConstIntToPtr()
1328 return wrap(ConstantExpr::getBitCast(unwrap<Constant>(ConstantVal), in LLVMConstBitCast()
1334 return wrap(ConstantExpr::getAddrSpaceCast(unwrap<Constant>(ConstantVal), in LLVMConstAddrSpaceCast()
1340 return wrap(ConstantExpr::getZExtOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstZExtOrBitCast()
1346 return wrap(ConstantExpr::getSExtOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstSExtOrBitCast()
1352 return wrap(ConstantExpr::getTruncOrBitCast(unwrap<Constant>(ConstantVal), in LLVMConstTruncOrBitCast()
1358 return wrap(ConstantExpr::getPointerCast(unwrap<Constant>(ConstantVal), in LLVMConstPointerCast()
1364 return wrap(ConstantExpr::getIntegerCast(unwrap<Constant>(ConstantVal), in LLVMConstIntCast()
1369 return wrap(ConstantExpr::getFPCast(unwrap<Constant>(ConstantVal), in LLVMConstFPCast()
1376 return wrap(ConstantExpr::getSelect(unwrap<Constant>(ConstantCondition), in LLVMConstSelect()
1383 return wrap(ConstantExpr::getExtractElement(unwrap<Constant>(VectorConstant), in LLVMConstExtractElement()
1390 return wrap(ConstantExpr::getInsertElement(unwrap<Constant>(VectorConstant), in LLVMConstInsertElement()
1398 return wrap(ConstantExpr::getShuffleVector(unwrap<Constant>(VectorAConstant), in LLVMConstShuffleVector()
1405 return wrap(ConstantExpr::getExtractValue(unwrap<Constant>(AggConstant), in LLVMConstExtractValue()
1412 return wrap(ConstantExpr::getInsertValue(unwrap<Constant>(AggConstant), in LLVMConstInsertValue()
1421 return wrap(InlineAsm::get(dyn_cast<FunctionType>(unwrap(Ty)), AsmString, in LLVMConstInlineAsm()
1426 return wrap(BlockAddress::get(unwrap<Function>(F), unwrap(BB))); in LLVMBlockAddress()
1432 return wrap(unwrap<GlobalValue>(Global)->getParent()); in LLVMGetGlobalParent()
1605 return wrap(new GlobalVariable(*unwrap(M), unwrap(Ty), false, in LLVMAddGlobal()
1612 return wrap(new GlobalVariable(*unwrap(M), unwrap(Ty), false, in LLVMAddGlobalInAddressSpace()
1619 return wrap(unwrap(M)->getNamedGlobal(Name)); in LLVMGetNamedGlobal()
1627 return wrap(&*I); in LLVMGetFirstGlobal()
1635 return wrap(&*--I); in LLVMGetLastGlobal()
1643 return wrap(&*I); in LLVMGetNextGlobal()
1651 return wrap(&*--I); in LLVMGetPreviousGlobal()
1662 return wrap(GV->getInitializer()); in LLVMGetInitializer()
1738 return wrap(GlobalAlias::create(PTy->getElementType(), PTy->getAddressSpace(), in LLVMAddAlias()
1747 return wrap(Function::Create(unwrap<FunctionType>(FunctionTy), in LLVMAddFunction()
1752 return wrap(unwrap(M)->getFunction(Name)); in LLVMGetNamedFunction()
1760 return wrap(&*I); in LLVMGetFirstFunction()
1768 return wrap(&*--I); in LLVMGetLastFunction()
1776 return wrap(&*I); in LLVMGetNextFunction()
1784 return wrap(&*--I); in LLVMGetPreviousFunction()
1796 return wrap(unwrap<Function>(Fn)->getPersonalityFn()); in LLVMGetPersonalityFn()
1850 return wrap(unwrap<Function>(F)->getAttribute(Idx, in LLVMGetEnumAttributeAtIndex()
1857 return wrap(unwrap<Function>(F)->getAttribute(Idx, StringRef(K, KLen))); in LLVMGetStringAttributeAtIndex()
1911 *ParamRefs++ = wrap(&*I); in LLVMGetParams()
1918 return wrap(&*AI); in LLVMGetParam()
1922 return wrap(unwrap<Argument>(V)->getParent()); in LLVMGetParamParent()
1930 return wrap(&*I); in LLVMGetFirstParam()
1938 return wrap(&*--I); in LLVMGetLastParam()
1946 return wrap(&*I); in LLVMGetNextParam()
1954 return wrap(&*--I); in LLVMGetPreviousParam()
1985 return wrap(static_cast<Value*>(unwrap(BB))); in LLVMBasicBlockAsValue()
1993 return wrap(unwrap<BasicBlock>(Val)); in LLVMValueAsBasicBlock()
2001 return wrap(unwrap(BB)->getParent()); in LLVMGetBasicBlockParent()
2005 return wrap(unwrap(BB)->getTerminator()); in LLVMGetBasicBlockTerminator()
2015 *BasicBlocksRefs++ = wrap(&BB); in LLVMGetBasicBlocks()
2019 return wrap(&unwrap<Function>(Fn)->getEntryBlock()); in LLVMGetEntryBasicBlock()
2027 return wrap(&*I); in LLVMGetFirstBasicBlock()
2035 return wrap(&*--I); in LLVMGetLastBasicBlock()
2043 return wrap(&*I); in LLVMGetNextBasicBlock()
2051 return wrap(&*--I); in LLVMGetPreviousBasicBlock()
2057 return wrap(BasicBlock::Create(*unwrap(C), Name, unwrap<Function>(FnRef))); in LLVMAppendBasicBlockInContext()
2068 return wrap(BasicBlock::Create(*unwrap(C), Name, BB->getParent(), BB)); in LLVMInsertBasicBlockInContext()
2095 return wrap(unwrap<Instruction>(Inst)->getParent()); in LLVMGetInstructionParent()
2103 return wrap(&*I); in LLVMGetFirstInstruction()
2111 return wrap(&*--I); in LLVMGetLastInstruction()
2119 return wrap(&*I); in LLVMGetNextInstruction()
2127 return wrap(&*--I); in LLVMGetPreviousInstruction()
2164 return wrap(C->clone()); in LLVMInstructionClone()
2222 return wrap(CallSite(unwrap<Instruction>(C)) in LLVMGetCallSiteEnumAttribute()
2229 return wrap(CallSite(unwrap<Instruction>(C)) in LLVMGetCallSiteStringAttribute()
2245 return wrap(CallSite(unwrap<Instruction>(Instr)).getCalledValue()); in LLVMGetCalledValue()
2261 return wrap(unwrap<InvokeInst>(Invoke)->getNormalDest()); in LLVMGetNormalDest()
2265 return wrap(unwrap<InvokeInst>(Invoke)->getUnwindDest()); in LLVMGetUnwindDest()
2283 return wrap(unwrap<TerminatorInst>(Term)->getSuccessor(i)); in LLVMGetSuccessor()
2297 return wrap(unwrap<BranchInst>(Branch)->getCondition()); in LLVMGetCondition()
2307 return wrap(unwrap<SwitchInst>(Switch)->getDefaultDest()); in LLVMGetSwitchDefaultDest()
2313 return wrap(unwrap<AllocaInst>(Alloca)->getAllocatedType()); in LLVMGetAllocatedType()
2340 return wrap(unwrap<PHINode>(PhiNode)->getIncomingValue(Index)); in LLVMGetIncomingValue()
2344 return wrap(unwrap<PHINode>(PhiNode)->getIncomingBlock(Index)); in LLVMGetIncomingBlock()
2375 return wrap(new IRBuilder<>(*unwrap(C))); in LLVMCreateBuilderInContext()
2400 return wrap(unwrap(Builder)->GetInsertBlock()); in LLVMGetInsertBlock()
2430 return wrap(MetadataAsValue::get( in LLVMGetCurrentDebugLocation()
2442 return wrap(unwrap(B)->CreateRetVoid()); in LLVMBuildRetVoid()
2446 return wrap(unwrap(B)->CreateRet(unwrap(V))); in LLVMBuildRet()
2451 return wrap(unwrap(B)->CreateAggregateRet(unwrap(RetVals), N)); in LLVMBuildAggregateRet()
2455 return wrap(unwrap(B)->CreateBr(unwrap(Dest))); in LLVMBuildBr()
2460 return wrap(unwrap(B)->CreateCondBr(unwrap(If), unwrap(Then), unwrap(Else))); in LLVMBuildCondBr()
2465 return wrap(unwrap(B)->CreateSwitch(unwrap(V), unwrap(Else), NumCases)); in LLVMBuildSwitch()
2470 return wrap(unwrap(B)->CreateIndirectBr(unwrap(Addr), NumDests)); in LLVMBuildIndirectBr()
2477 return wrap(unwrap(B)->CreateInvoke(unwrap(Fn), unwrap(Then), unwrap(Catch), in LLVMBuildInvoke()
2491 return wrap(unwrap(B)->CreateLandingPad(unwrap(Ty), NumClauses, Name)); in LLVMBuildLandingPad()
2495 return wrap(unwrap(B)->CreateResume(unwrap(Exn))); in LLVMBuildResume()
2499 return wrap(unwrap(B)->CreateUnreachable()); in LLVMBuildUnreachable()
2516 return wrap(unwrap<LandingPadInst>(LandingPad)->getClause(Idx)); in LLVMGetClause()
2536 return wrap(unwrap(B)->CreateAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAdd()
2541 return wrap(unwrap(B)->CreateNSWAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWAdd()
2546 return wrap(unwrap(B)->CreateNUWAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWAdd()
2551 return wrap(unwrap(B)->CreateFAdd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFAdd()
2556 return wrap(unwrap(B)->CreateSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSub()
2561 return wrap(unwrap(B)->CreateNSWSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWSub()
2566 return wrap(unwrap(B)->CreateNUWSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWSub()
2571 return wrap(unwrap(B)->CreateFSub(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFSub()
2576 return wrap(unwrap(B)->CreateMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildMul()
2581 return wrap(unwrap(B)->CreateNSWMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNSWMul()
2586 return wrap(unwrap(B)->CreateNUWMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildNUWMul()
2591 return wrap(unwrap(B)->CreateFMul(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFMul()
2596 return wrap(unwrap(B)->CreateUDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildUDiv()
2601 return wrap(unwrap(B)->CreateSDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSDiv()
2606 return wrap(unwrap(B)->CreateExactSDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildExactSDiv()
2611 return wrap(unwrap(B)->CreateFDiv(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFDiv()
2616 return wrap(unwrap(B)->CreateURem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildURem()
2621 return wrap(unwrap(B)->CreateSRem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildSRem()
2626 return wrap(unwrap(B)->CreateFRem(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildFRem()
2631 return wrap(unwrap(B)->CreateShl(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildShl()
2636 return wrap(unwrap(B)->CreateLShr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildLShr()
2641 return wrap(unwrap(B)->CreateAShr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAShr()
2646 return wrap(unwrap(B)->CreateAnd(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildAnd()
2651 return wrap(unwrap(B)->CreateOr(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildOr()
2656 return wrap(unwrap(B)->CreateXor(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildXor()
2662 return wrap(unwrap(B)->CreateBinOp(Instruction::BinaryOps(map_from_llvmopcode(Op)), unwrap(LHS), in LLVMBuildBinOp()
2667 return wrap(unwrap(B)->CreateNeg(unwrap(V), Name)); in LLVMBuildNeg()
2672 return wrap(unwrap(B)->CreateNSWNeg(unwrap(V), Name)); in LLVMBuildNSWNeg()
2677 return wrap(unwrap(B)->CreateNUWNeg(unwrap(V), Name)); in LLVMBuildNUWNeg()
2681 return wrap(unwrap(B)->CreateFNeg(unwrap(V), Name)); in LLVMBuildFNeg()
2685 return wrap(unwrap(B)->CreateNot(unwrap(V), Name)); in LLVMBuildNot()
2698 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildMalloc()
2709 return wrap(unwrap(B)->Insert(Malloc, Twine(Name))); in LLVMBuildArrayMalloc()
2714 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), nullptr, Name)); in LLVMBuildAlloca()
2719 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), unwrap(Val), Name)); in LLVMBuildArrayAlloca()
2723 return wrap(unwrap(B)->Insert( in LLVMBuildFree()
2729 return wrap(unwrap(B)->CreateLoad(unwrap(PointerVal), Name)); in LLVMBuildLoad()
2734 return wrap(unwrap(B)->CreateStore(unwrap(Val), unwrap(PointerVal))); in LLVMBuildStore()
2771 return wrap( in LLVMBuildFence()
2781 return wrap(unwrap(B)->CreateGEP(nullptr, unwrap(Pointer), IdxList, Name)); in LLVMBuildGEP()
2788 return wrap( in LLVMBuildInBoundsGEP()
2794 return wrap(unwrap(B)->CreateStructGEP(nullptr, unwrap(Pointer), Idx, Name)); in LLVMBuildStructGEP()
2799 return wrap(unwrap(B)->CreateGlobalString(Str, Name)); in LLVMBuildGlobalString()
2804 return wrap(unwrap(B)->CreateGlobalStringPtr(Str, Name)); in LLVMBuildGlobalStringPtr()
2844 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildTrunc()
2849 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildZExt()
2854 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildSExt()
2859 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToUI()
2864 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPToSI()
2869 return wrap(unwrap(B)->CreateUIToFP(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildUIToFP()
2874 return wrap(unwrap(B)->CreateSIToFP(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildSIToFP()
2879 return wrap(unwrap(B)->CreateFPTrunc(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPTrunc()
2884 return wrap(unwrap(B)->CreateFPExt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPExt()
2889 return wrap(unwrap(B)->CreatePtrToInt(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildPtrToInt()
2894 return wrap(unwrap(B)->CreateIntToPtr(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildIntToPtr()
2899 return wrap(unwrap(B)->CreateBitCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildBitCast()
2904 return wrap(unwrap(B)->CreateAddrSpaceCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildAddrSpaceCast()
2909 return wrap(unwrap(B)->CreateZExtOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildZExtOrBitCast()
2915 return wrap(unwrap(B)->CreateSExtOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildSExtOrBitCast()
2921 return wrap(unwrap(B)->CreateTruncOrBitCast(unwrap(Val), unwrap(DestTy), in LLVMBuildTruncOrBitCast()
2927 return wrap(unwrap(B)->CreateCast(Instruction::CastOps(map_from_llvmopcode(Op)), unwrap(Val), in LLVMBuildCast()
2933 return wrap(unwrap(B)->CreatePointerCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildPointerCast()
2938 return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), in LLVMBuildIntCast()
2944 return wrap(unwrap(B)->CreateFPCast(unwrap(Val), unwrap(DestTy), Name)); in LLVMBuildFPCast()
2952 return wrap(unwrap(B)->CreateICmp(static_cast<ICmpInst::Predicate>(Op), in LLVMBuildICmp()
2959 return wrap(unwrap(B)->CreateFCmp(static_cast<FCmpInst::Predicate>(Op), in LLVMBuildFCmp()
2966 return wrap(unwrap(B)->CreatePHI(unwrap(Ty), 0, Name)); in LLVMBuildPhi()
2972 return wrap(unwrap(B)->CreateCall(unwrap(Fn), in LLVMBuildCall()
2980 return wrap(unwrap(B)->CreateSelect(unwrap(If), unwrap(Then), unwrap(Else), in LLVMBuildSelect()
2986 return wrap(unwrap(B)->CreateVAArg(unwrap(List), unwrap(Ty), Name)); in LLVMBuildVAArg()
2991 return wrap(unwrap(B)->CreateExtractElement(unwrap(VecVal), unwrap(Index), in LLVMBuildExtractElement()
2998 return wrap(unwrap(B)->CreateInsertElement(unwrap(VecVal), unwrap(EltVal), in LLVMBuildInsertElement()
3005 return wrap(unwrap(B)->CreateShuffleVector(unwrap(V1), unwrap(V2), in LLVMBuildShuffleVector()
3011 return wrap(unwrap(B)->CreateExtractValue(unwrap(AggVal), Index, Name)); in LLVMBuildExtractValue()
3017 return wrap(unwrap(B)->CreateInsertValue(unwrap(AggVal), unwrap(EltVal), in LLVMBuildInsertValue()
3023 return wrap(unwrap(B)->CreateIsNull(unwrap(Val), Name)); in LLVMBuildIsNull()
3028 return wrap(unwrap(B)->CreateIsNotNull(unwrap(Val), Name)); in LLVMBuildIsNotNull()
3033 return wrap(unwrap(B)->CreatePtrDiff(unwrap(LHS), unwrap(RHS), Name)); in LLVMBuildPtrDiff()
3054 return wrap(unwrap(B)->CreateAtomicRMW(intop, unwrap(PTR), unwrap(Val), in LLVMBuildAtomicRMW()
3064 return wrap(unwrap(B)->CreateAtomicCmpXchg(unwrap(Ptr), unwrap(Cmp), in LLVMBuildAtomicCmpXchg()
3138 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile()
3149 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()
3159 return wrap(MemoryBuffer::getMemBuffer(StringRef(InputData, InputDataLength), in LLVMCreateMemoryBufferWithMemoryRange()
3169 return wrap( in LLVMCreateMemoryBufferWithMemoryRangeCopy()
3189 return wrap(PassRegistry::getPassRegistry()); in LLVMGetGlobalPassRegistry()
3195 return wrap(new legacy::PassManager()); in LLVMCreatePassManager()
3199 return wrap(new legacy::FunctionPassManager(unwrap(M))); in LLVMCreateFunctionPassManagerForModule()