| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Core.cpp | 53 inline BasicBlock **unwrap(LLVMBasicBlockRef *BBs) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 109 unwrap(C)->setDiagnosticHandlerCallBack( in LLVMContextSetDiagnosticHandler() 117 unwrap(C)->getDiagnosticHandlerCallBack()); in LLVMContextGetDiagnosticHandler() 121 return unwrap(C)->getDiagnosticContext(); in LLVMContextGetDiagnosticContext() 128 unwrap(C)->setYieldCallback(YieldCallback, OpaqueHandle); in LLVMContextSetYieldCallback() 132 return unwrap(C)->shouldDiscardValueNames(); in LLVMContextShouldDiscardValueNames() 136 unwrap(C)->setDiscardValueNames(Discard); in LLVMContextSetDiscardValueNames() 140 delete unwrap(C); in LLVMContextDispose() 145 return unwrap(C)->getMDKindID(StringRef(Name, SLen)); in LLVMGetMDKindIDInContext() 153 return unwrap(C)->getOrInsertSyncScopeID(StringRef(Name, SLen)); in LLVMGetSyncScopeID() [all …]
|
| H A D | DebugInfo.cpp | 1048 return (DIT *)(Ref ? unwrap<MDNode>(Ref) : nullptr); in unwrapDI() 1069 return wrap(new DIBuilder(*unwrap(M), false)); in LLVMCreateDIBuilderDisallowUnresolved() 1073 return wrap(new DIBuilder(*unwrap(M))); in LLVMCreateDIBuilder() 1077 return getDebugMetadataVersionFromModule(*unwrap(M)); in LLVMGetModuleDebugMetadataVersion() 1081 return StripDebugInfo(*unwrap(M)); in LLVMStripModuleDebugInfo() 1085 delete unwrap(Builder); in LLVMDisposeDIBuilder() 1089 unwrap(Builder)->finalize(); in LLVMDIBuilderFinalize() 1094 unwrap(Builder)->finalizeSubprogram(unwrapDI<DISubprogram>(subprogram)); in LLVMDIBuilderFinalizeSubprogram() 1107 return wrap(unwrap(Builder)->createCompileUnit( in LLVMDIBuilderCreateCompileUnit() 1121 return wrap(unwrap(Builder)->createFile(StringRef(Filename, FilenameLen), in LLVMDIBuilderCreateFile() [all …]
|
| H A D | Comdat.cpp | 35 return wrap(unwrap(M)->getOrInsertComdat(Name)); in LLVMGetOrInsertComdat() 39 GlobalObject *G = unwrap<GlobalObject>(V); in LLVMGetComdat() 44 GlobalObject *G = unwrap<GlobalObject>(V); in LLVMSetComdat() 45 G->setComdat(unwrap(C)); in LLVMSetComdat() 49 switch (unwrap(C)->getSelectionKind()) { in LLVMGetComdatSelectionKind() 65 Comdat *Cd = unwrap(C); in LLVMSetComdatSelectionKind()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ |
| H A D | Target.cpp | 29 inline TargetLibraryInfoImpl *unwrap(LLVMTargetLibraryInfoRef P) { in unwrap() function 44 return wrap(&unwrap(M)->getDataLayout()); in LLVMGetModuleDataLayout() 48 unwrap(M)->setDataLayout(*unwrap(DL)); in LLVMSetModuleDataLayout() 56 delete unwrap(TD); in LLVMDisposeTargetData() 61 unwrap(PM)->add(new TargetLibraryInfoWrapperPass(*unwrap(TLI))); in LLVMAddTargetLibraryInfo() 65 std::string StringRep = unwrap(TD)->getStringRepresentation(); in LLVMCopyStringRepOfTargetData() 70 return unwrap(TD)->isLittleEndian() ? LLVMLittleEndian : LLVMBigEndian; in LLVMByteOrder() 74 return unwrap(TD)->getPointerSize(0); in LLVMPointerSize() 78 return unwrap(TD)->getPointerSize(AS); in LLVMPointerSizeForAS() 82 return wrap(unwrap(TD)->getIntPtrType(*unwrap(LLVMGetGlobalContext()))); in LLVMIntPtrType() [all …]
|
| H A D | TargetMachineC.cpp | 50 static TargetMachine *unwrap(LLVMTargetMachineRef P) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 53 static Target *unwrap(LLVMTargetRef P) { in unwrap() function 72 return wrap(unwrap(T)->getNext()); in LLVMGetNextTarget() 99 return unwrap(T)->getName(); in LLVMGetTargetName() 103 return unwrap(T)->getShortDescription(); in LLVMGetTargetDescription() 107 return unwrap(T)->hasJIT(); in LLVMTargetHasJIT() 111 return unwrap(T)->hasTargetMachine(); in LLVMTargetHasTargetMachine() 115 return unwrap(T)->hasMCAsmBackend(); in LLVMTargetHasAsmBackend() 123 delete unwrap(Options); in LLVMDisposeTargetMachineOptions() 128 unwrap(Options)->CPU = CPU; in LLVMTargetMachineOptionsSetCPU() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | Object.cpp | 24 inline OwningBinary<ObjectFile> *unwrap(LLVMObjectFileRef OF) { in unwrap() function 33 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap() function 43 inline symbol_iterator *unwrap(LLVMSymbolIteratorRef SI) { in unwrap() function 53 inline relocation_iterator *unwrap(LLVMRelocationIteratorRef SI) { in unwrap() function 68 auto maybeContext = Context ? unwrap(Context) : nullptr; in LLVMCreateBinary() 70 createBinary(unwrap(MemBuf)->getMemBufferRef(), maybeContext)); in LLVMCreateBinary() 80 auto Buf = unwrap(BR)->getMemoryBufferRef(); in LLVMBinaryCopyMemoryBuffer() 87 delete unwrap(BR); in LLVMDisposeBinary() 135 return BinaryTypeMapper::mapBinaryTypeToLLVMBinaryType(unwrap(BR)->getType()); in LLVMBinaryGetType() 142 auto universal = cast<MachOUniversalBinary>(unwrap(BR)); in LLVMMachOUniversalBinaryCopyObjectForArch() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | OrcV2CBindings.cpp | 47 inline SymbolStringPoolEntryUnsafe unwrap(LLVMOrcSymbolStringPoolEntryRef E) { in unwrap() function 158 Result.insert(unwrap(Symbols.Symbols[I]).moveToSymbolStringPtr()); in toSymbolNameSet() 166 SM[unwrap(Syms[I].Name).moveToSymbolStringPtr()] = { in toSymbolMap() 176 JITDylib *JD = unwrap(Pairs[I].JD); in toSymbolDependenceMap() 181 Names.insert(unwrap(Sym).moveToSymbolStringPtr()); in toSymbolDependenceMap() 297 auto Err = unwrap(TryToGenerate(::wrap(this), Ctx, &LSR, CLookupKind, in tryToGenerate() 302 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(LSR)); in tryToGenerate() 319 unwrap(ES)->setErrorReporter( in LLVMOrcExecutionSessionSetErrorReporter() 326 unwrap(ES)->getExecutorProcessControl().getSymbolStringPool().get()); in LLVMOrcExecutionSessionGetSymbolStringPool() 330 unwrap(SSP)->clearDeadEntries(); in LLVMOrcSymbolStringPoolClearDeadEntries() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngineBindings.cpp | 44 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 56 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat() 70 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth() 75 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt() 83 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer() 87 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat() 89 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat() 91 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat() 98 delete unwrap(GenVal); in LLVMDisposeGenericValue() 107 EngineBuilder builder(std::unique_ptr<Module>(unwrap(M))); in LLVMCreateExecutionEngineForModule() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Passes/ |
| H A D | PassBuilderBindings.cpp | 44 static TargetMachine *unwrap(LLVMTargetMachineRef P) { in unwrap() function 104 TargetMachine *Machine = unwrap(TM); in LLVMRunPasses() 105 LLVMPassBuilderOptions *PassOpts = unwrap(Options); in LLVMRunPasses() 106 Module *Mod = unwrap(M); in LLVMRunPasses() 113 TargetMachine *Machine = unwrap(TM); in LLVMRunPassesOnFunction() 114 LLVMPassBuilderOptions *PassOpts = unwrap(Options); in LLVMRunPassesOnFunction() 115 Function *Fun = unwrap<Function>(F); in LLVMRunPassesOnFunction() 125 unwrap(Options)->VerifyEach = VerifyEach; in LLVMPassBuilderOptionsSetVerifyEach() 130 unwrap(Options)->DebugLogging = DebugLogging; in LLVMPassBuilderOptionsSetDebugLogging() 135 unwrap(Options)->AAPipeline = AAPipeline; in LLVMPassBuilderOptionsSetAAPipeline() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Remarks/ |
| H A D | Remark.cpp | 70 return unwrap(String)->data(); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 74 return unwrap(String)->size(); in LLVMRemarkStringGetLen() 79 return wrap(&unwrap(DL)->SourceFilePath); in LLVMRemarkDebugLocGetSourceFilePath() 83 return unwrap(DL)->SourceLine; in LLVMRemarkDebugLocGetSourceLine() 88 return unwrap(DL)->SourceColumn; in LLVMRemarkDebugLocGetSourceColumn() 92 return wrap(&unwrap(Arg)->Key); in LLVMRemarkArgGetKey() 96 return wrap(&unwrap(Arg)->Val); in LLVMRemarkArgGetValue() 101 if (const std::optional<RemarkLocation> &Loc = unwrap(Arg)->Loc) in LLVMRemarkArgGetDebugLoc() 107 delete unwrap(Remark); in LLVMRemarkEntryDispose() 112 return static_cast<LLVMRemarkType>(unwrap(Remark)->RemarkType); in LLVMRemarkEntryGetType() [all …]
|
| H A D | RemarkParser.cpp | 123 CParser &TheCParser = *unwrap(Parser); in LLVMRemarkParserGetNext() 144 return unwrap(Parser)->hasError(); in LLVMRemarkParserHasError() 149 return unwrap(Parser)->getMessage(); in LLVMRemarkParserGetErrorMessage() 153 delete unwrap(Parser); in LLVMRemarkParserDispose()
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitReader.cpp | 38 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext() 39 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMParseBitcodeInContext() 60 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext2() 61 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMParseBitcodeInContext2() 80 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMGetBitcodeModuleInContext() 81 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext() 107 LLVMContext &Ctx = *unwrap(ContextRef); in LLVMGetBitcodeModuleInContext2() 108 std::unique_ptr<MemoryBuffer> Owner(unwrap(MemBuf)); in LLVMGetBitcodeModuleInContext2()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | CBindingWrapping.h | 20 inline ty *unwrap(ref P) { \ 32 inline T *unwrap(ref P) { \ 33 return cast<T>(unwrap(P)); \ 40 inline T *unwrap(ref P) { \ 41 T *Q = (T*)unwrap(P); \
|
| H A D | Parallel.h | 282 return unwrap(parallelTransformReduce( in parallelForEachError() 285 return wrap(joinErrors(unwrap(Lhs), unwrap(Rhs))); in parallelForEachError()
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
| H A D | BitWriter.cpp | 27 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFile() 35 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToFD() 47 WriteBitcodeToFile(*unwrap(M), OS); in LLVMWriteBitcodeToMemoryBuffer()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | Analysis.cpp | 86 LLVMBool Result = verifyModule(*unwrap(M), OutMessages ? &MsgsOS : DebugOS); in LLVMVerifyModule() 103 *unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs() in LLVMVerifyFunction() 113 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFG() 118 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFGOnly()
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Error.cpp | 190 void LLVMConsumeError(LLVMErrorRef Err) { consumeError(unwrap(Err)); } in LLVMConsumeError() 195 cantFail(unwrap(Err)); in LLVMCantFail() 199 std::string Tmp = toString(unwrap(Err)); in LLVMGetErrorMessage()
|
| /freebsd/contrib/llvm-project/llvm/lib/IRReader/ |
| H A D | IRReader.cpp | 117 std::unique_ptr<MemoryBuffer> MB(unwrap(MemBuf)); in LLVMParseIRInContext() 119 wrap(parseIR(MB->getMemBufferRef(), Diag, *unwrap(ContextRef)).release()); in LLVMParseIRInContext()
|
| /freebsd/crypto/krb5/src/lib/gssapi/krb5/ |
| H A D | Makefile.in | 63 $(srcdir)/unwrap.c \ 117 $(OUTPRE)unwrap.$(OBJEXT) \ 174 unwrap.o \
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | CodeGenCWrappers.h | 25 inline std::optional<CodeModel::Model> unwrap(LLVMCodeModel Model, bool &JIT) { in unwrap() function
|
| /freebsd/krb5/lib/gssapi/krb5/ |
| H A D | Makefile.inc | 56 unwrap.c \
|
| /freebsd/crypto/openssl/test/ |
| H A D | evp_libctx_test.c | 724 unsigned char unwrap[256] = { in kem_rsa_gen_recover() local 753 && TEST_int_eq(EVP_PKEY_decapsulate(rctx, unwrap, &unwraplen, in kem_rsa_gen_recover() 756 && TEST_mem_eq(unwrap, unwraplen, secret, secretlen); in kem_rsa_gen_recover() 766 if (!TEST_int_eq(EVP_PKEY_decapsulate(rctx, unwrap, &unwraplen, ct, in kem_rsa_gen_recover()
|
| /freebsd/contrib/wpa/src/crypto/ |
| H A D | Makefile | 22 aes-unwrap.o \
|
| /freebsd/kerberos5/lib/libgssapi_krb5/ |
| H A D | Makefile | 61 unwrap.c \
|
| /freebsd/contrib/file/src/ |
| H A D | file.c | 185 file_private int unwrap(struct magic_set *, const char *); 286 e |= unwrap(magic, optarg); in main() 510 unwrap(struct magic_set *ms, const char *fn) in unwrap() function
|