Lines Matching refs:Name
120 unsigned LLVMGetMDKindIDInContext(LLVMContextRef C, const char *Name,
122 return unwrap(C)->getMDKindID(StringRef(Name, SLen));
125 unsigned LLVMGetMDKindID(const char *Name, unsigned SLen) {
126 return LLVMGetMDKindIDInContext(LLVMGetGlobalContext(), Name, SLen);
129 unsigned LLVMGetEnumAttributeKindForName(const char *Name, size_t SLen) {
130 return Attribute::getAttrKindFromName(StringRef(Name, SLen));
276 void LLVMSetSourceFileName(LLVMModuleRef M, const char *Name, size_t Len) {
277 unwrap(M)->setSourceFileName(StringRef(Name, Len));
715 LLVMTypeRef LLVMStructCreateNamed(LLVMContextRef C, const char *Name)
717 return wrap(StructType::create(*unwrap(C), Name));
761 LLVMTypeRef LLVMGetTypeByName(LLVMModuleRef M, const char *Name) {
762 return wrap(StructType::getTypeByName(unwrap(M)->getContext(), Name));
765 LLVMTypeRef LLVMGetTypeByName2(LLVMContextRef C, const char *Name) {
766 return wrap(StructType::getTypeByName(*unwrap(C), Name));
854 #define HANDLE_VALUE(Name) \
855 case Value::Name##Val: \
856 return LLVM##Name##ValueKind;
869 void LLVMSetValueName2(LLVMValueRef Val, const char *Name, size_t NameLen) {
870 unwrap(Val)->setName(StringRef(Name, NameLen));
877 void LLVMSetValueName(LLVMValueRef Val, const char *Name) {
878 unwrap(Val)->setName(Name);
1216 const char *Name, size_t NameLen) {
1217 return wrap(unwrap(M)->getNamedMetadata(StringRef(Name, NameLen)));
1221 const char *Name, size_t NameLen) {
1222 return wrap(unwrap(M)->getOrInsertNamedMetadata({Name, NameLen}));
1244 unsigned LLVMGetNamedMetadataNumOperands(LLVMModuleRef M, const char *Name) {
1245 if (NamedMDNode *N = unwrap(M)->getNamedMetadata(Name)) {
1251 void LLVMGetNamedMetadataOperands(LLVMModuleRef M, const char *Name,
1253 NamedMDNode *N = unwrap(M)->getNamedMetadata(Name);
1261 void LLVMAddNamedMetadataOperand(LLVMModuleRef M, const char *Name,
1263 NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(Name);
2130 LLVMValueRef LLVMAddGlobal(LLVMModuleRef M, LLVMTypeRef Ty, const char *Name) {
2132 GlobalValue::ExternalLinkage, nullptr, Name));
2136 const char *Name,
2139 GlobalValue::ExternalLinkage, nullptr, Name,
2144 LLVMValueRef LLVMGetNamedGlobal(LLVMModuleRef M, const char *Name) {
2145 return wrap(unwrap(M)->getNamedGlobal(Name));
2262 const char *Name) {
2265 GlobalValue::ExternalLinkage, Name,
2270 const char *Name, size_t NameLen) {
2271 return wrap(unwrap(M)->getNamedAlias(Name));
2316 LLVMValueRef LLVMAddFunction(LLVMModuleRef M, const char *Name,
2319 GlobalValue::ExternalLinkage, Name, unwrap(M)));
2322 LLVMValueRef LLVMGetNamedFunction(LLVMModuleRef M, const char *Name) {
2323 return wrap(unwrap(M)->getFunction(Name));
2419 unsigned LLVMLookupIntrinsicID(const char *Name, size_t NameLen) {
2420 return Function::lookupIntrinsicID({Name, NameLen});
2559 const char *Name, size_t NameLen,
2564 StringRef(Name, NameLen),
2569 const char *Name, size_t NameLen) {
2570 return wrap(unwrap(M)->getNamedIFunc(StringRef(Name, NameLen)));
2694 const char *Name) {
2695 return wrap(llvm::BasicBlock::Create(*unwrap(C), Name));
2714 const char *Name) {
2715 return wrap(BasicBlock::Create(*unwrap(C), Name, unwrap<Function>(FnRef)));
2718 LLVMBasicBlockRef LLVMAppendBasicBlock(LLVMValueRef FnRef, const char *Name) {
2719 return LLVMAppendBasicBlockInContext(LLVMGetGlobalContext(), FnRef, Name);
2724 const char *Name) {
2726 return wrap(BasicBlock::Create(*unwrap(C), Name, BB->getParent(), BB));
2730 const char *Name) {
2731 return LLVMInsertBasicBlockInContext(LLVMGetGlobalContext(), BBRef, Name);
3086 const char *Name) {
3087 unwrap(Builder)->Insert(unwrap<Instruction>(Instr), Name);
3172 const char *Name) {
3179 makeArrayRef(unwrap(Args), NumArgs), Name));
3185 const char *Name) {
3188 makeArrayRef(unwrap(Args), NumArgs), Name));
3193 const char *Name) {
3200 return wrap(unwrap(B)->CreateLandingPad(unwrap(Ty), NumClauses, Name));
3205 const char *Name) {
3208 Name));
3213 const char *Name) {
3220 Name));
3229 unsigned NumHandlers, const char *Name) {
3235 NumHandlers, Name));
3320 const char *Name) {
3321 return wrap(unwrap(B)->CreateAdd(unwrap(LHS), unwrap(RHS), Name));
3325 const char *Name) {
3326 return wrap(unwrap(B)->CreateNSWAdd(unwrap(LHS), unwrap(RHS), Name));
3330 const char *Name) {
3331 return wrap(unwrap(B)->CreateNUWAdd(unwrap(LHS), unwrap(RHS), Name));
3335 const char *Name) {
3336 return wrap(unwrap(B)->CreateFAdd(unwrap(LHS), unwrap(RHS), Name));
3340 const char *Name) {
3341 return wrap(unwrap(B)->CreateSub(unwrap(LHS), unwrap(RHS), Name));
3345 const char *Name) {
3346 return wrap(unwrap(B)->CreateNSWSub(unwrap(LHS), unwrap(RHS), Name));
3350 const char *Name) {
3351 return wrap(unwrap(B)->CreateNUWSub(unwrap(LHS), unwrap(RHS), Name));
3355 const char *Name) {
3356 return wrap(unwrap(B)->CreateFSub(unwrap(LHS), unwrap(RHS), Name));
3360 const char *Name) {
3361 return wrap(unwrap(B)->CreateMul(unwrap(LHS), unwrap(RHS), Name));
3365 const char *Name) {
3366 return wrap(unwrap(B)->CreateNSWMul(unwrap(LHS), unwrap(RHS), Name));
3370 const char *Name) {
3371 return wrap(unwrap(B)->CreateNUWMul(unwrap(LHS), unwrap(RHS), Name));
3375 const char *Name) {
3376 return wrap(unwrap(B)->CreateFMul(unwrap(LHS), unwrap(RHS), Name));
3380 const char *Name) {
3381 return wrap(unwrap(B)->CreateUDiv(unwrap(LHS), unwrap(RHS), Name));
3385 LLVMValueRef RHS, const char *Name) {
3386 return wrap(unwrap(B)->CreateExactUDiv(unwrap(LHS), unwrap(RHS), Name));
3390 const char *Name) {
3391 return wrap(unwrap(B)->CreateSDiv(unwrap(LHS), unwrap(RHS), Name));
3395 LLVMValueRef RHS, const char *Name) {
3396 return wrap(unwrap(B)->CreateExactSDiv(unwrap(LHS), unwrap(RHS), Name));
3400 const char *Name) {
3401 return wrap(unwrap(B)->CreateFDiv(unwrap(LHS), unwrap(RHS), Name));
3405 const char *Name) {
3406 return wrap(unwrap(B)->CreateURem(unwrap(LHS), unwrap(RHS), Name));
3410 const char *Name) {
3411 return wrap(unwrap(B)->CreateSRem(unwrap(LHS), unwrap(RHS), Name));
3415 const char *Name) {
3416 return wrap(unwrap(B)->CreateFRem(unwrap(LHS), unwrap(RHS), Name));
3420 const char *Name) {
3421 return wrap(unwrap(B)->CreateShl(unwrap(LHS), unwrap(RHS), Name));
3425 const char *Name) {
3426 return wrap(unwrap(B)->CreateLShr(unwrap(LHS), unwrap(RHS), Name));
3430 const char *Name) {
3431 return wrap(unwrap(B)->CreateAShr(unwrap(LHS), unwrap(RHS), Name));
3435 const char *Name) {
3436 return wrap(unwrap(B)->CreateAnd(unwrap(LHS), unwrap(RHS), Name));
3440 const char *Name) {
3441 return wrap(unwrap(B)->CreateOr(unwrap(LHS), unwrap(RHS), Name));
3445 const char *Name) {
3446 return wrap(unwrap(B)->CreateXor(unwrap(LHS), unwrap(RHS), Name));
3451 const char *Name) {
3453 unwrap(RHS), Name));
3456 LLVMValueRef LLVMBuildNeg(LLVMBuilderRef B, LLVMValueRef V, const char *Name) {
3457 return wrap(unwrap(B)->CreateNeg(unwrap(V), Name));
3461 const char *Name) {
3462 return wrap(unwrap(B)->CreateNSWNeg(unwrap(V), Name));
3466 const char *Name) {
3467 return wrap(unwrap(B)->CreateNUWNeg(unwrap(V), Name));
3470 LLVMValueRef LLVMBuildFNeg(LLVMBuilderRef B, LLVMValueRef V, const char *Name) {
3471 return wrap(unwrap(B)->CreateFNeg(unwrap(V), Name));
3474 LLVMValueRef LLVMBuildNot(LLVMBuilderRef B, LLVMValueRef V, const char *Name) {
3475 return wrap(unwrap(B)->CreateNot(unwrap(V), Name));
3481 const char *Name) {
3488 return wrap(unwrap(B)->Insert(Malloc, Twine(Name)));
3492 LLVMValueRef Val, const char *Name) {
3499 return wrap(unwrap(B)->Insert(Malloc, Twine(Name)));
3528 const char *Name) {
3529 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), nullptr, Name));
3533 LLVMValueRef Val, const char *Name) {
3534 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), unwrap(Val), Name));
3543 const char *Name) {
3547 return wrap(unwrap(B)->CreateLoad(Ty->getElementType(), V, Name));
3551 LLVMValueRef PointerVal, const char *Name) {
3552 return wrap(unwrap(B)->CreateLoad(unwrap(Ty), unwrap(PointerVal), Name));
3636 LLVMBool isSingleThread, const char *Name) {
3641 Name));
3646 const char *Name) {
3651 return wrap(unwrap(B)->CreateGEP(Ty, Val, IdxList, Name));
3656 unsigned NumIndices, const char *Name) {
3658 return wrap(unwrap(B)->CreateGEP(unwrap(Ty), unwrap(Pointer), IdxList, Name));
3663 const char *Name) {
3668 return wrap(unwrap(B)->CreateInBoundsGEP(Ty, Val, IdxList, Name));
3673 unsigned NumIndices, const char *Name) {
3676 unwrap(B)->CreateInBoundsGEP(unwrap(Ty), unwrap(Pointer), IdxList, Name));
3680 unsigned Idx, const char *Name) {
3684 return wrap(unwrap(B)->CreateStructGEP(Ty, Val, Idx, Name));
3689 const char *Name) {
3691 unwrap(B)->CreateStructGEP(unwrap(Ty), unwrap(Pointer), Idx, Name));
3695 const char *Name) {
3696 return wrap(unwrap(B)->CreateGlobalString(Str, Name));
3700 const char *Name) {
3701 return wrap(unwrap(B)->CreateGlobalStringPtr(Str, Name));
3766 LLVMTypeRef DestTy, const char *Name) {
3767 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name));
3771 LLVMTypeRef DestTy, const char *Name) {
3772 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name));
3776 LLVMTypeRef DestTy, const char *Name) {
3777 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name));
3781 LLVMTypeRef DestTy, const char *Name) {
3782 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name));
3786 LLVMTypeRef DestTy, const char *Name) {
3787 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Name));
3791 LLVMTypeRef DestTy, const char *Name) {
3792 return wrap(unwrap(B)->CreateUIToFP(unwrap(Val), unwrap(DestTy), Name));
3796 LLVMTypeRef DestTy, const char *Name) {
3797 return wrap(unwrap(B)->CreateSIToFP(unwrap(Val), unwrap(DestTy), Name));
3801 LLVMTypeRef DestTy, const char *Name) {
3802 return wrap(unwrap(B)->CreateFPTrunc(unwrap(Val), unwrap(DestTy), Name));
3806 LLVMTypeRef DestTy, const char *Name) {
3807 return wrap(unwrap(B)->CreateFPExt(unwrap(Val), unwrap(DestTy), Name));
3811 LLVMTypeRef DestTy, const char *Name) {
3812 return wrap(unwrap(B)->CreatePtrToInt(unwrap(Val), unwrap(DestTy), Name));
3816 LLVMTypeRef DestTy, const char *Name) {
3817 return wrap(unwrap(B)->CreateIntToPtr(unwrap(Val), unwrap(DestTy), Name));
3821 LLVMTypeRef DestTy, const char *Name) {
3822 return wrap(unwrap(B)->CreateBitCast(unwrap(Val), unwrap(DestTy), Name));
3826 LLVMTypeRef DestTy, const char *Name) {
3827 return wrap(unwrap(B)->CreateAddrSpaceCast(unwrap(Val), unwrap(DestTy), Name));
3831 LLVMTypeRef DestTy, const char *Name) {
3833 Name));
3837 LLVMTypeRef DestTy, const char *Name) {
3839 Name));
3843 LLVMTypeRef DestTy, const char *Name) {
3845 Name));
3849 LLVMTypeRef DestTy, const char *Name) {
3851 unwrap(DestTy), Name));
3855 LLVMTypeRef DestTy, const char *Name) {
3856 return wrap(unwrap(B)->CreatePointerCast(unwrap(Val), unwrap(DestTy), Name));
3861 const char *Name) {
3863 unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), IsSigned, Name));
3867 LLVMTypeRef DestTy, const char *Name) {
3869 /*isSigned*/true, Name));
3873 LLVMTypeRef DestTy, const char *Name) {
3874 return wrap(unwrap(B)->CreateFPCast(unwrap(Val), unwrap(DestTy), Name));
3881 const char *Name) {
3883 unwrap(LHS), unwrap(RHS), Name));
3888 const char *Name) {
3890 unwrap(LHS), unwrap(RHS), Name));
3895 LLVMValueRef LLVMBuildPhi(LLVMBuilderRef B, LLVMTypeRef Ty, const char *Name) {
3896 return wrap(unwrap(B)->CreatePHI(unwrap(Ty), 0, Name));
3901 const char *Name) {
3907 makeArrayRef(unwrap(Args), NumArgs), Name));
3912 const char *Name) {
3915 makeArrayRef(unwrap(Args), NumArgs), Name));
3920 const char *Name) {
3922 Name));
3926 LLVMTypeRef Ty, const char *Name) {
3927 return wrap(unwrap(B)->CreateVAArg(unwrap(List), unwrap(Ty), Name));
3931 LLVMValueRef Index, const char *Name) {
3933 Name));
3938 const char *Name) {
3940 unwrap(Index), Name));
3945 const char *Name) {
3947 unwrap(Mask), Name));
3951 unsigned Index, const char *Name) {
3952 return wrap(unwrap(B)->CreateExtractValue(unwrap(AggVal), Index, Name));
3957 const char *Name) {
3959 Index, Name));
3963 const char *Name) {
3964 return wrap(unwrap(B)->CreateFreeze(unwrap(Val), Name));
3968 const char *Name) {
3969 return wrap(unwrap(B)->CreateIsNull(unwrap(Val), Name));
3973 const char *Name) {
3974 return wrap(unwrap(B)->CreateIsNotNull(unwrap(Val), Name));
3978 LLVMValueRef RHS, const char *Name) {
3979 return wrap(unwrap(B)->CreatePtrDiff(unwrap(LHS), unwrap(RHS), Name));