Lines Matching defs:Val
520 LLVMTypeRef LLVMTypeOf(LLVMValueRef Val) {
521 return wrap(unwrap(Val)->getType());
524 const char *LLVMGetValueName(LLVMValueRef Val) {
525 return unwrap(Val)->getName().data();
528 void LLVMSetValueName(LLVMValueRef Val, const char *Name) {
529 unwrap(Val)->setName(Name);
532 void LLVMDumpValue(LLVMValueRef Val) {
533 unwrap(Val)->dump();
536 char* LLVMPrintValueToString(LLVMValueRef Val) {
540 if (unwrap(Val))
541 unwrap(Val)->print(os);
580 void LLVMSetMetadata(LLVMValueRef Inst, unsigned KindID, LLVMValueRef Val) {
581 MDNode *N = Val ? extractMDNode(unwrap<MetadataAsValue>(Val)) : nullptr;
589 LLVMValueRef LLVMIsA##name(LLVMValueRef Val) { \
590 return wrap(static_cast<Value*>(dyn_cast_or_null<name>(unwrap(Val)))); \
595 LLVMValueRef LLVMIsAMDNode(LLVMValueRef Val) {
596 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val)))
599 return Val;
603 LLVMValueRef LLVMIsAMDString(LLVMValueRef Val) {
604 if (auto *MD = dyn_cast_or_null<MetadataAsValue>(unwrap(Val)))
606 return Val;
611 LLVMUseRef LLVMGetFirstUse(LLVMValueRef Val) {
612 Value *V = unwrap(Val);
646 LLVMValueRef LLVMGetOperand(LLVMValueRef Val, unsigned Index) {
647 Value *V = unwrap(Val);
660 LLVMUseRef LLVMGetOperandUse(LLVMValueRef Val, unsigned Index) {
661 Value *V = unwrap(Val);
665 void LLVMSetOperand(LLVMValueRef Val, unsigned Index, LLVMValueRef Op) {
666 unwrap<User>(Val)->setOperand(Index, unwrap(Op));
669 int LLVMGetNumOperands(LLVMValueRef Val) {
670 Value *V = unwrap(Val);
672 return LLVMGetMDNodeNumOperands(Val);
695 LLVMBool LLVMIsNull(LLVMValueRef Val) {
696 if (Constant *C = dyn_cast<Constant>(unwrap(Val)))
701 LLVMBool LLVMIsUndef(LLVMValueRef Val) {
702 return isa<UndefValue>(unwrap(Val));
805 LLVMValueRef Val)
810 if (!Val)
812 N->addOperand(extractMDNode(unwrap<MetadataAsValue>(Val)));
1163 Constant* Val = unwrap<Constant>(ConstantVal);
1166 return wrap(ConstantExpr::getInBoundsGetElementPtr(nullptr, Val, IdxList));
1842 LLVMBool LLVMValueIsBasicBlock(LLVMValueRef Val) {
1843 return isa<BasicBlock>(unwrap(Val));
1846 LLVMBasicBlockRef LLVMValueAsBasicBlock(LLVMValueRef Val) {
1847 return wrap(unwrap<BasicBlock>(Val));
2271 void LLVMSetCleanup(LLVMValueRef LandingPad, LLVMBool Val) {
2272 unwrap<LandingPadInst>(LandingPad)->setCleanup(Val);
2445 LLVMValueRef Val, const char *Name) {
2451 unwrap(Val), nullptr, "");
2461 LLVMValueRef Val, const char *Name) {
2462 return wrap(unwrap(B)->CreateAlloca(unwrap(Ty), unwrap(Val), Name));
2476 LLVMValueRef LLVMBuildStore(LLVMBuilderRef B, LLVMValueRef Val,
2478 return wrap(unwrap(B)->CreateStore(unwrap(Val), unwrap(PointerVal)));
2550 LLVMValueRef LLVMBuildTrunc(LLVMBuilderRef B, LLVMValueRef Val,
2552 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name));
2555 LLVMValueRef LLVMBuildZExt(LLVMBuilderRef B, LLVMValueRef Val,
2557 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name));
2560 LLVMValueRef LLVMBuildSExt(LLVMBuilderRef B, LLVMValueRef Val,
2562 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name));
2565 LLVMValueRef LLVMBuildFPToUI(LLVMBuilderRef B, LLVMValueRef Val,
2567 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name));
2570 LLVMValueRef LLVMBuildFPToSI(LLVMBuilderRef B, LLVMValueRef Val,
2572 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Name));
2575 LLVMValueRef LLVMBuildUIToFP(LLVMBuilderRef B, LLVMValueRef Val,
2577 return wrap(unwrap(B)->CreateUIToFP(unwrap(Val), unwrap(DestTy), Name));
2580 LLVMValueRef LLVMBuildSIToFP(LLVMBuilderRef B, LLVMValueRef Val,
2582 return wrap(unwrap(B)->CreateSIToFP(unwrap(Val), unwrap(DestTy), Name));
2585 LLVMValueRef LLVMBuildFPTrunc(LLVMBuilderRef B, LLVMValueRef Val,
2587 return wrap(unwrap(B)->CreateFPTrunc(unwrap(Val), unwrap(DestTy), Name));
2590 LLVMValueRef LLVMBuildFPExt(LLVMBuilderRef B, LLVMValueRef Val,
2592 return wrap(unwrap(B)->CreateFPExt(unwrap(Val), unwrap(DestTy), Name));
2595 LLVMValueRef LLVMBuildPtrToInt(LLVMBuilderRef B, LLVMValueRef Val,
2597 return wrap(unwrap(B)->CreatePtrToInt(unwrap(Val), unwrap(DestTy), Name));
2600 LLVMValueRef LLVMBuildIntToPtr(LLVMBuilderRef B, LLVMValueRef Val,
2602 return wrap(unwrap(B)->CreateIntToPtr(unwrap(Val), unwrap(DestTy), Name));
2605 LLVMValueRef LLVMBuildBitCast(LLVMBuilderRef B, LLVMValueRef Val,
2607 return wrap(unwrap(B)->CreateBitCast(unwrap(Val), unwrap(DestTy), Name));
2610 LLVMValueRef LLVMBuildAddrSpaceCast(LLVMBuilderRef B, LLVMValueRef Val,
2612 return wrap(unwrap(B)->CreateAddrSpaceCast(unwrap(Val), unwrap(DestTy), Name));
2615 LLVMValueRef LLVMBuildZExtOrBitCast(LLVMBuilderRef B, LLVMValueRef Val,
2617 return wrap(unwrap(B)->CreateZExtOrBitCast(unwrap(Val), unwrap(DestTy),
2621 LLVMValueRef LLVMBuildSExtOrBitCast(LLVMBuilderRef B, LLVMValueRef Val,
2623 return wrap(unwrap(B)->CreateSExtOrBitCast(unwrap(Val), unwrap(DestTy),
2627 LLVMValueRef LLVMBuildTruncOrBitCast(LLVMBuilderRef B, LLVMValueRef Val,
2629 return wrap(unwrap(B)->CreateTruncOrBitCast(unwrap(Val), unwrap(DestTy),
2633 LLVMValueRef LLVMBuildCast(LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef Val,
2635 return wrap(unwrap(B)->CreateCast(Instruction::CastOps(map_from_llvmopcode(Op)), unwrap(Val),
2639 LLVMValueRef LLVMBuildPointerCast(LLVMBuilderRef B, LLVMValueRef Val,
2641 return wrap(unwrap(B)->CreatePointerCast(unwrap(Val), unwrap(DestTy), Name));
2644 LLVMValueRef LLVMBuildIntCast(LLVMBuilderRef B, LLVMValueRef Val,
2646 return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy),
2650 LLVMValueRef LLVMBuildFPCast(LLVMBuilderRef B, LLVMValueRef Val,
2652 return wrap(unwrap(B)->CreateFPCast(unwrap(Val), unwrap(DestTy), Name));
2729 LLVMValueRef LLVMBuildIsNull(LLVMBuilderRef B, LLVMValueRef Val,
2731 return wrap(unwrap(B)->CreateIsNull(unwrap(Val), Name));
2734 LLVMValueRef LLVMBuildIsNotNull(LLVMBuilderRef B, LLVMValueRef Val,
2736 return wrap(unwrap(B)->CreateIsNotNull(unwrap(Val), Name));
2745 LLVMValueRef PTR, LLVMValueRef Val,
2762 return wrap(unwrap(B)->CreateAtomicRMW(intop, unwrap(PTR), unwrap(Val),