Lines Matching refs:unwrap
1020 return (DIT *)(Ref ? unwrap<MDNode>(Ref) : nullptr); in unwrapDI()
1041 return wrap(new DIBuilder(*unwrap(M), false)); in LLVMCreateDIBuilderDisallowUnresolved()
1045 return wrap(new DIBuilder(*unwrap(M))); in LLVMCreateDIBuilder()
1049 return getDebugMetadataVersionFromModule(*unwrap(M)); in LLVMGetModuleDebugMetadataVersion()
1053 return StripDebugInfo(*unwrap(M)); in LLVMStripModuleDebugInfo()
1057 delete unwrap(Builder); in LLVMDisposeDIBuilder()
1061 unwrap(Builder)->finalize(); in LLVMDIBuilderFinalize()
1066 unwrap(Builder)->finalizeSubprogram(unwrapDI<DISubprogram>(subprogram)); in LLVMDIBuilderFinalizeSubprogram()
1079 return wrap(unwrap(Builder)->createCompileUnit( in LLVMDIBuilderCreateCompileUnit()
1093 return wrap(unwrap(Builder)->createFile(StringRef(Filename, FilenameLen), in LLVMDIBuilderCreateFile()
1103 return wrap(unwrap(Builder)->createModule( in LLVMDIBuilderCreateModule()
1114 return wrap(unwrap(Builder)->createNameSpace( in LLVMDIBuilderCreateNameSpace()
1124 return wrap(unwrap(Builder)->createFunction( in LLVMDIBuilderCreateFunction()
1136 return wrap(unwrap(Builder)->createLexicalBlock(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlock()
1146 return wrap(unwrap(Builder)->createLexicalBlockFile(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateLexicalBlockFile()
1157 return wrap(unwrap(Builder)->createImportedModule(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateImportedModuleFromNamespace()
1169 ? unwrap(Builder)->getOrCreateArray({unwrap(Elements), NumElements}) in LLVMDIBuilderCreateImportedModuleFromAlias()
1171 return wrap(unwrap(Builder)->createImportedModule( in LLVMDIBuilderCreateImportedModuleFromAlias()
1182 ? unwrap(Builder)->getOrCreateArray({unwrap(Elements), NumElements}) in LLVMDIBuilderCreateImportedModuleFromModule()
1184 return wrap(unwrap(Builder)->createImportedModule( in LLVMDIBuilderCreateImportedModuleFromModule()
1195 ? unwrap(Builder)->getOrCreateArray({unwrap(Elements), NumElements}) in LLVMDIBuilderCreateImportedDeclaration()
1197 return wrap(unwrap(Builder)->createImportedDeclaration( in LLVMDIBuilderCreateImportedDeclaration()
1206 return wrap(DILocation::get(*unwrap(Ctx), Line, Column, unwrap(Scope), in LLVMDIBuilderCreateDebugLocation()
1207 unwrap(InlinedAt))); in LLVMDIBuilderCreateDebugLocation()
1258 unwrap(Builder)->createMacro(unwrapDI<DIMacroFile>(ParentMacroFile), Line, in LLVMDIBuilderCreateMacro()
1267 return wrap(unwrap(Builder)->createTempMacroFile( in LLVMDIBuilderCreateTempMacroFile()
1275 return wrap(unwrap(Builder)->createEnumerator({Name, NameLen}, Value, in LLVMDIBuilderCreateEnumerator()
1284 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateEnumerationType()
1286 return wrap(unwrap(Builder)->createEnumerationType( in LLVMDIBuilderCreateEnumerationType()
1297 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateUnionType()
1299 return wrap(unwrap(Builder)->createUnionType( in LLVMDIBuilderCreateUnionType()
1311 auto Subs = unwrap(Builder)->getOrCreateArray({unwrap(Subscripts), in LLVMDIBuilderCreateArrayType()
1313 return wrap(unwrap(Builder)->createArrayType(Size, AlignInBits, in LLVMDIBuilderCreateArrayType()
1322 auto Subs = unwrap(Builder)->getOrCreateArray({unwrap(Subscripts), in LLVMDIBuilderCreateVectorType()
1324 return wrap(unwrap(Builder)->createVectorType(Size, AlignInBits, in LLVMDIBuilderCreateVectorType()
1333 return wrap(unwrap(Builder)->createBasicType({Name, NameLen}, in LLVMDIBuilderCreateBasicType()
1342 return wrap(unwrap(Builder)->createPointerType( in LLVMDIBuilderCreatePointerType()
1354 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateStructType()
1356 return wrap(unwrap(Builder)->createStructType( in LLVMDIBuilderCreateStructType()
1368 return wrap(unwrap(Builder)->createMemberType(unwrapDI<DIScope>(Scope), in LLVMDIBuilderCreateMemberType()
1376 return wrap(unwrap(Builder)->createUnspecifiedType({Name, NameLen})); in LLVMDIBuilderCreateUnspecifiedType()
1384 return wrap(unwrap(Builder)->createStaticMemberType( in LLVMDIBuilderCreateStaticMemberType()
1387 unwrap<Constant>(ConstantVal), DW_TAG_member, AlignInBits)); in LLVMDIBuilderCreateStaticMemberType()
1397 return wrap(unwrap(Builder)->createObjCIVar( in LLVMDIBuilderCreateObjCIVar()
1412 return wrap(unwrap(Builder)->createObjCProperty( in LLVMDIBuilderCreateObjCProperty()
1421 return wrap(unwrap(Builder)->createObjectPointerType(unwrapDI<DIType>(Type))); in LLVMDIBuilderCreateObjectPointerType()
1429 return wrap(unwrap(Builder)->createTypedef( in LLVMDIBuilderCreateTypedef()
1439 return wrap(unwrap(Builder)->createInheritance( in LLVMDIBuilderCreateInheritance()
1450 return wrap(unwrap(Builder)->createForwardDecl( in LLVMDIBuilderCreateForwardDecl()
1463 return wrap(unwrap(Builder)->createReplaceableCompositeType( in LLVMDIBuilderCreateReplaceableCompositeType()
1473 return wrap(unwrap(Builder)->createQualifiedType(Tag, in LLVMDIBuilderCreateQualifiedType()
1480 return wrap(unwrap(Builder)->createReferenceType(Tag, in LLVMDIBuilderCreateReferenceType()
1486 return wrap(unwrap(Builder)->createNullPtrType()); in LLVMDIBuilderCreateNullPtrType()
1496 return wrap(unwrap(Builder)->createMemberPointerType( in LLVMDIBuilderCreateMemberPointerType()
1511 return wrap(unwrap(Builder)->createBitFieldMemberType( in LLVMDIBuilderCreateBitFieldMemberType()
1526 auto Elts = unwrap(Builder)->getOrCreateArray({unwrap(Elements), in LLVMDIBuilderCreateClassType()
1528 return wrap(unwrap(Builder)->createClassType( in LLVMDIBuilderCreateClassType()
1540 return wrap(unwrap(Builder)->createArtificialType(unwrapDI<DIType>(Type))); in LLVMDIBuilderCreateArtificialType()
1577 unwrap(Builder)->getOrCreateTypeArray({unwrap(Types), Length}).get()); in LLVMDIBuilderGetOrCreateTypeArray()
1586 auto Elts = unwrap(Builder)->getOrCreateTypeArray({unwrap(ParameterTypes), in LLVMDIBuilderCreateSubroutineType()
1588 return wrap(unwrap(Builder)->createSubroutineType( in LLVMDIBuilderCreateSubroutineType()
1595 unwrap(Builder)->createExpression(ArrayRef<uint64_t>(Addr, Length))); in LLVMDIBuilderCreateExpression()
1601 return wrap(unwrap(Builder)->createConstantValueExpression(Value)); in LLVMDIBuilderCreateConstantValueExpression()
1609 return wrap(unwrap(Builder)->createGlobalVariableExpression( in LLVMDIBuilderCreateGlobalVariableExpression()
1612 true, unwrap<DIExpression>(Expr), unwrapDI<MDNode>(Decl), in LLVMDIBuilderCreateGlobalVariableExpression()
1640 MDTuple::getTemporary(*unwrap(Ctx), {unwrap(Data), Count}).release()); in LLVMTemporaryMDNode()
1650 Node->replaceAllUsesWith(unwrap(Replacement)); in LLVMMetadataReplaceAllUsesWith()
1659 return wrap(unwrap(Builder)->createTempGlobalVariableFwdDecl( in LLVMDIBuilderCreateTempGlobalVariableFwdDecl()
1668 DbgInstPtr DbgInst = unwrap(Builder)->insertDeclare( in LLVMDIBuilderInsertDeclareRecordBefore()
1669 unwrap(Storage), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDeclareRecordBefore()
1670 unwrap<DIExpression>(Expr), unwrap<DILocation>(DL), in LLVMDIBuilderInsertDeclareRecordBefore()
1671 unwrap<Instruction>(Instr)); in LLVMDIBuilderInsertDeclareRecordBefore()
1685 DbgInstPtr DbgInst = unwrap(Builder)->insertDeclare( in LLVMDIBuilderInsertDeclareRecordAtEnd()
1686 unwrap(Storage), unwrap<DILocalVariable>(VarInfo), in LLVMDIBuilderInsertDeclareRecordAtEnd()
1687 unwrap<DIExpression>(Expr), unwrap<DILocation>(DL), unwrap(Block)); in LLVMDIBuilderInsertDeclareRecordAtEnd()
1701 DbgInstPtr DbgInst = unwrap(Builder)->insertDbgValueIntrinsic( in LLVMDIBuilderInsertDbgValueRecordBefore()
1702 unwrap(Val), unwrap<DILocalVariable>(VarInfo), unwrap<DIExpression>(Expr), in LLVMDIBuilderInsertDbgValueRecordBefore()
1703 unwrap<DILocation>(DebugLoc), unwrap<Instruction>(Instr)); in LLVMDIBuilderInsertDbgValueRecordBefore()
1717 DbgInstPtr DbgInst = unwrap(Builder)->insertDbgValueIntrinsic( in LLVMDIBuilderInsertDbgValueRecordAtEnd()
1718 unwrap(Val), unwrap<DILocalVariable>(VarInfo), unwrap<DIExpression>(Expr), in LLVMDIBuilderInsertDbgValueRecordAtEnd()
1719 unwrap<DILocation>(DebugLoc), unwrap(Block)); in LLVMDIBuilderInsertDbgValueRecordAtEnd()
1734 return wrap(unwrap(Builder)->createAutoVariable( in LLVMDIBuilderCreateAutoVariable()
1735 unwrap<DIScope>(Scope), {Name, NameLen}, unwrap<DIFile>(File), in LLVMDIBuilderCreateAutoVariable()
1736 LineNo, unwrap<DIType>(Ty), AlwaysPreserve, in LLVMDIBuilderCreateAutoVariable()
1744 return wrap(unwrap(Builder)->createParameterVariable( in LLVMDIBuilderCreateParameterVariable()
1745 unwrap<DIScope>(Scope), {Name, NameLen}, ArgNo, unwrap<DIFile>(File), in LLVMDIBuilderCreateParameterVariable()
1746 LineNo, unwrap<DIType>(Ty), AlwaysPreserve, in LLVMDIBuilderCreateParameterVariable()
1752 return wrap(unwrap(Builder)->getOrCreateSubrange(Lo, Count)); in LLVMDIBuilderGetOrCreateSubrange()
1758 Metadata **DataValue = unwrap(Data); in LLVMDIBuilderGetOrCreateArray()
1759 return wrap(unwrap(Builder)->getOrCreateArray({DataValue, Length}).get()); in LLVMDIBuilderGetOrCreateArray()
1763 return wrap(unwrap<Function>(Func)->getSubprogram()); in LLVMGetSubprogram()
1767 unwrap<Function>(Func)->setSubprogram(unwrap<DISubprogram>(SP)); in LLVMSetSubprogram()
1775 return wrap(unwrap<Instruction>(Inst)->getDebugLoc().getAsMDNode()); in LLVMInstructionGetDebugLoc()
1780 unwrap<Instruction>(Inst)->setDebugLoc(DebugLoc(unwrap<MDNode>(Loc))); in LLVMInstructionSetDebugLoc()
1782 unwrap<Instruction>(Inst)->setDebugLoc(DebugLoc()); in LLVMInstructionSetDebugLoc()
1786 switch(unwrap(Metadata)->getMetadataID()) { in LLVMGetMetadataKind()