android: [IRSim] Adding IR Instruction Mapper
Porting of commit
7e4c6fb85466 ("[IRSim] Adding IR Instruction Mapper")
Fixes the following building errors:
ld.lld: error: undefined symbol: llvm::IRSimilarityIdentifierWrapperPass::ID
>>> referenced by STLExtras.h:184 (external/llvm-project/llvm/include/llvm/ADT/STLExtras.h:184)
>>> IROutliner.o:(llvm::IRSimilarity::IRSimilarityIdentifier& llvm::function_ref<llvm::IRSimilarity::IRSimilarityIdentifier& (llvm::Module&)>::callback_fn<IROutlinerLegacyPass::runOnModule(llvm::Module&)::$_7>(int, llvm::Module&)) in archive out/soong/.intermediates/external/llvm-project/llvm/lib/Transforms/IPO/libLLVM12ipo/android_x86_x86_64_core_static/libLLVM12ipo.a
ld.lld: error: undefined symbol: llvm::IRSimilarityAnalysis::Key
>>> referenced by PassManager.h:789 (external/llvm-project/llvm/include/llvm/IR/PassManager.h:789)
>>> IROutliner.o:(std::__1::__function::__func<llvm::IROutlinerPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)::$_10, std::__1::allocator<llvm::IROutlinerPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)::$_10>, llvm::IRSimilarity::IRSimilarityIdentifier& (llvm::Module&)>::operator()(llvm::Module&)) in archive out/soong/.intermediates/external/llvm-project/llvm/lib/Transforms/IPO/libLLVM12ipo/android_x86_x86_64_core_static/libLLVM12ipo.a