Lines Matching refs:unwrap
25 Function *Func = unwrap<Function>(Fn); in LLVMAddFunctionAttr2()
36 Function *Func = unwrap<Function>(Fn); in LLVMGetFunctionAttr2()
42 Function *Func = unwrap<Function>(Fn); in LLVMRemoveFunctionAttr2()
53 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata()
57 return wrap(MDString::get(*unwrap(C), StringRef(Str, SLen))); in LLVMMDString2()
63 MDNode::get(*unwrap(C), ArrayRef<Metadata *>(unwrap(MDs), Count))); in LLVMMDNode2()
68 return wrap(MDTuple::getTemporary(*unwrap(C), in LLVMTemporaryMDNode()
69 ArrayRef<Metadata *>(unwrap(MDs), Count)) in LLVMTemporaryMDNode()
75 NamedMDNode *N = unwrap(M)->getOrInsertNamedMetadata(name); in LLVMAddNamedMetadataOperand2()
80 N->addOperand(unwrap<MDNode>(Val)); in LLVMAddNamedMetadataOperand2()
84 MDNode *N = MD ? unwrap<MDNode>(MD) : nullptr; in LLVMSetMetadata2()
85 unwrap<Instruction>(Inst)->setMetadata(KindID, N); in LLVMSetMetadata2()
89 auto *Node = unwrap<MDNode>(MD); in LLVMMetadataReplaceAllUsesWith()
90 Node->replaceAllUsesWith(unwrap<Metadata>(New)); in LLVMMetadataReplaceAllUsesWith()
97 unwrap(Bref)->SetCurrentDebugLocation( in LLVMSetCurrentDebugLocation2()
98 DebugLoc::get(Line, Col, Scope ? unwrap<MDNode>(Scope) : nullptr, in LLVMSetCurrentDebugLocation2()
99 InlinedAt ? unwrap<MDNode>(InlinedAt) : nullptr)); in LLVMSetCurrentDebugLocation2()
103 unwrap<Function>(Func)->setSubprogram(unwrap<DISubprogram>(SP)); in LLVMSetSubprogram()