1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/include/llvm
Elia Geretto 4a3dac8498 [PassManagerBuilder] Remove global extension when a plugin is unloaded
This commit fixes PR39321.

GlobalExtensions is not guaranteed to be destroyed when optimizer plugins are unloaded. If it is indeed destroyed after a plugin is dlclose-d, the destructor of the corresponding ExtensionFn is not mapped anymore, causing a call to unmapped memory during destruction.

This commit guarantees that extensions coming from external plugins are removed from GlobalExtensions when the plugin is unloaded if GlobalExtensions has not been destroyed yet.

Differential Revision: https://reviews.llvm.org/D71959
2020-01-29 16:15:45 +00:00
..
ADT [ADT] Make StringRef's std::string conversion operator explicit 2020-01-28 23:47:07 +01:00
Analysis [AliasAnalysis] Add missing FMRB_* enums. 2020-01-28 15:47:08 -08:00
AsmParser
BinaryFormat [Support] Split MallocAllocator out of Allocator.h 2020-01-24 17:29:32 -08:00
Bitcode [LTO] Support for embedding bitcode section during LTO 2019-12-12 12:34:19 -08:00
Bitstream Remarks - fix static analyzer warnings. NFCI. 2019-11-09 13:01:05 +00:00
CodeGen GlobalISel: Lower G_WRITE_REGISTER 2020-01-29 06:48:24 -08:00
Config build: reduce CMake handling for zlib 2020-01-02 11:19:12 -08:00
DebugInfo [DebugInfo] Make most debug line prologue errors non-fatal to parsing 2020-01-29 10:23:41 +00:00
Demangle PODSmallVector - fix MSVC uninitialized variable warnings. NFCI. 2019-11-10 11:18:15 +00:00
DWARFLinker Fix GCC warning/error '-fpermission'. NFC. 2020-01-23 10:45:02 -05:00
ExecutionEngine Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Frontend/OpenMP Fix Wdocumentation warnings. NFCI. 2020-01-07 10:55:38 +00:00
FuzzMutate
IR [AArch64] Add IR intrinsics for sq(r)dmulh_lane(q) 2020-01-29 13:25:23 +00:00
IRReader
LineEditor
Linker
LTO Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
MC Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
MCA [MCA][LSUnit] Track loads and stores until retirement. 2019-10-08 10:46:01 +00:00
Object Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ObjectYAML [yaml2obj/obj2yaml] - Add support for SHT_RELR sections. 2020-01-15 15:15:24 +03:00
Option Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Passes [llvm] Make new pass manager's OptimizationLevel a class 2020-01-16 09:00:56 -08:00
ProfileData Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Remarks [Support] Split MallocAllocator out of Allocator.h 2020-01-24 17:29:32 -08:00
Support LLT: Add changeNumElements 2020-01-29 07:32:07 -08:00
TableGen [tblgen] Fix implicit conversion only diagnosed by g++ 6 2020-01-29 00:25:44 +01:00
Target [PATCH] [Target] Test commit 2020-01-24 15:56:08 -06:00
Testing/Support
TextAPI Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ToolDrivers
Transforms [PassManagerBuilder] Remove global extension when a plugin is unloaded 2020-01-29 16:15:45 +00:00
WindowsManifest
WindowsResource
XRay FDRRecords - fix uninitialized variable warnings. NFCI. 2019-11-07 18:42:02 +00:00
CMakeLists.txt
InitializePasses.h [NewPM] Port MergeFunctions pass 2020-01-14 20:55:41 +01:00
LinkAllIR.h
LinkAllPasses.h [BasicBlockUtils] Add utility to remove redundant dbg.value instrs 2019-12-16 11:41:21 +01:00
module.extern.modulemap
module.install.modulemap
module.modulemap [CMake] Fix modules build after DWARFLinker reorganization 2020-01-10 11:06:38 -08:00
module.modulemap.build
Pass.h Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
PassAnalysisSupport.h
PassInfo.h
PassRegistry.h
PassSupport.h