/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Core.cpp | 50 inline BasicBlock **unwrap(LLVMBasicBlockRef *BBs) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 106 unwrap(C)->setDiagnosticHandlerCallBack( in LLVMContextSetDiagnosticHandler() 114 unwrap(C)->getDiagnosticHandlerCallBack()); in LLVMContextGetDiagnosticHandler() 118 return unwrap(C)->getDiagnosticContext(); in LLVMContextGetDiagnosticContext() 125 unwrap(C)->setYieldCallback(YieldCallback, OpaqueHandle); in LLVMContextSetYieldCallback() 129 return unwrap(C)->shouldDiscardValueNames(); in LLVMContextShouldDiscardValueNames() 133 unwrap(C)->setDiscardValueNames(Discard); in LLVMContextSetDiscardValueNames() 137 delete unwrap(C); in LLVMContextDispose() 142 return unwrap(C)->getMDKindID(StringRef(Name, SLen)); in LLVMGetMDKindIDInContext() 159 auto &Ctx = *unwrap(C); in LLVMCreateEnumAttribute() [all …]
|
H A D | DebugInfo.cpp | 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() [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 | 46 inline SymbolStringPoolEntryUnsafe unwrap(LLVMOrcSymbolStringPoolEntryRef E) { in unwrap() function 157 Result.insert(unwrap(Symbols.Symbols[I]).moveToSymbolStringPtr()); in toSymbolNameSet() 165 SM[unwrap(Syms[I].Name).moveToSymbolStringPtr()] = { in toSymbolMap() 175 JITDylib *JD = unwrap(Pairs[I].JD); in toSymbolDependenceMap() 180 Names.insert(unwrap(Sym).moveToSymbolStringPtr()); in toSymbolDependenceMap() 296 auto Err = unwrap(TryToGenerate(::wrap(this), Ctx, &LSR, CLookupKind, in tryToGenerate() 301 OrcV2CAPIHelper::resetLookupState(LS, ::unwrap(LSR)); in tryToGenerate() 318 unwrap(ES)->setErrorReporter( in LLVMOrcExecutionSessionSetErrorReporter() 325 unwrap(ES)->getExecutorProcessControl().getSymbolStringPool().get()); in LLVMOrcExecutionSessionGetSymbolStringPool() 329 unwrap(SSP)->clearDeadEntries(); in LLVMOrcSymbolStringPoolClearDeadEntries() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngineBindings.cpp | 45 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 57 switch (unwrap(TyRef)->getTypeID()) { in LLVMCreateGenericValueOfFloat() 71 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth() 76 GenericValue *GenVal = unwrap(GenValRef); in LLVMGenericValueToInt() 84 return unwrap(GenVal)->PointerVal; in LLVMGenericValueToPointer() 88 switch (unwrap(TyRef)->getTypeID()) { in LLVMGenericValueToFloat() 90 return unwrap(GenVal)->FloatVal; in LLVMGenericValueToFloat() 92 return unwrap(GenVal)->DoubleVal; in LLVMGenericValueToFloat() 99 delete unwrap(GenVal); in LLVMDisposeGenericValue() 108 EngineBuilder builder(std::unique_ptr<Module>(unwrap( in LLVMCreateExecutionEngineForModule() [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 | 144 CParser &TheCParser = *unwrap(Parser); in LLVMRemarkParserGetNext() 165 return unwrap(Parser)->hasError(); in LLVMRemarkParserHasError() 170 return unwrap(Parser)->getMessage(); in LLVMRemarkParserGetErrorMessage() 174 delete unwrap(Parser); in LLVMRemarkParserDispose()
|
/freebsd/contrib/llvm-project/llvm/lib/Passes/ |
H A D | PassBuilderBindings.cpp | 40 static TargetMachine *unwrap(LLVMTargetMachineRef P) { in unwrap() function 50 TargetMachine *Machine = unwrap(TM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 51 LLVMPassBuilderOptions *PassOpts = unwrap(Options); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 55 Module *Mod = unwrap(M); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 89 unwrap(Options)->VerifyEach = VerifyEach; in LLVMPassBuilderOptionsSetVerifyEach() 94 unwrap(Options)->DebugLogging = DebugLogging; in LLVMPassBuilderOptionsSetDebugLogging() 99 unwrap(Options)->PTO.LoopInterleaving = LoopInterleaving; in LLVMPassBuilderOptionsSetLoopInterleaving() 104 unwrap(Options)->PTO.LoopVectorization = LoopVectorization; in LLVMPassBuilderOptionsSetLoopVectorization() 109 unwrap(Options)->PTO.SLPVectorization = SLPVectorization; in LLVMPassBuilderOptionsSetSLPVectorization() 114 unwrap(Options)->PTO.LoopUnrolling = LoopUnrolling; in LLVMPassBuilderOptionsSetLoopUnrolling() [all …]
|
/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 | 280 return unwrap(parallelTransformReduce( in parallelForEachError() 283 return wrap(joinErrors(unwrap(Lhs), unwrap(Rhs))); in parallelForEachError()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Analysis.cpp | 73 LLVMBool Result = verifyModule(*unwrap(M), OutMessages ? &MsgsOS : DebugOS); in LLVMVerifyModule() 90 *unwrap<Function>(Fn), Action != LLVMReturnStatusAction ? &errs() in LLVMVerifyFunction() 100 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFG() 105 Function *F = unwrap<Function>(Fn); in LLVMViewFunctionCFGOnly()
|
/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/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/contrib/llvm-project/llvm/lib/Support/ |
H A D | Error.cpp | 183 void LLVMConsumeError(LLVMErrorRef Err) { consumeError(unwrap(Err)); } in LLVMConsumeError() 186 std::string Tmp = toString(unwrap(Err)); in LLVMGetErrorMessage()
|
/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/crypto/openssl/test/ |
H A D | evp_libctx_test.c | 530 unsigned char unwrap[256] = { 0, }; in kem_rsa_gen_recover() local 554 && TEST_int_eq(EVP_PKEY_decapsulate(rctx, unwrap, &unwraplen, in kem_rsa_gen_recover() 556 && TEST_mem_eq(unwrap, unwraplen, secret, secretlen); in kem_rsa_gen_recover() 565 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/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
|
/freebsd/kerberos5/lib/libgssapi_krb5/ |
H A D | Makefile | 63 unwrap.c \
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Value.h | 1054 inline Value **unwrap(LLVMValueRef *Vals) { 1059 inline T **unwrap(LLVMValueRef *Vals, unsigned Length) { 1062 unwrap<T>(*I); // For side effect of calling assert on invalid usage.
|
/freebsd/usr.sbin/wpa/src/crypto/ |
H A D | Makefile | 39 SRCS+= aes-unwrap.c aes-wrap.c \
|