LLVM  14.0.0git
Macros | Functions | Variables
InstrOrderFile.cpp File Reference
#include "llvm/Transforms/Instrumentation/InstrOrderFile.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/PassRegistry.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Instrumentation.h"
#include <fstream>
#include <map>
#include <mutex>
#include <set>
#include <sstream>
Include dependency graph for InstrOrderFile.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "instrorderfile"
 

Functions

 INITIALIZE_PASS_BEGIN (InstrOrderFileLegacyPass, "instrorderfile", "Instrumentation for Order File", false, false) INITIALIZE_PASS_END(InstrOrderFileLegacyPass
 

Variables

static cl::opt< std::string > ClOrderFileWriteMapping ("orderfile-write-mapping", cl::init(""), cl::desc("Dump functions and their MD5 hash to deobfuscate profile data"), cl::Hidden)
 
 instrorderfile
 
Instrumentation for Order File
 
Instrumentation for Order false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "instrorderfile"

Definition at line 38 of file InstrOrderFile.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( InstrOrderFileLegacyPass  ,
"instrorderfile"  ,
"Instrumentation for Order File ,
false  ,
false   
)

Variable Documentation

◆ ClOrderFileWriteMapping

cl::opt<std::string> ClOrderFileWriteMapping("orderfile-write-mapping", cl::init(""), cl::desc( "Dump functions and their MD5 hash to deobfuscate profile data"), cl::Hidden)
static

◆ false

Instrumentation for Order false

Definition at line 205 of file InstrOrderFile.cpp.

◆ File

Instrumentation for Order File

Definition at line 205 of file InstrOrderFile.cpp.

Referenced by llvm::FileCollectorBase::addFile(), llvm::pdb::DbiStreamBuilder::addModuleSourceFile(), llvm::DWARFLinker::addObjectFile(), llvm::DwarfUnit::addSourceLine(), llvm::MinidumpYAML::Stream::create(), llvm::lto::InputFile::create(), llvm::MinidumpYAML::Object::create(), llvm::DIBuilder::createAutoVariable(), llvm::DIBuilder::createBitFieldMemberType(), llvm::DIBuilder::createClassType(), llvm::DIBuilder::createCommonBlock(), llvm::DIBuilder::createCompileUnit(), llvm::DIBuilder::createEnumerationType(), llvm::pdb::NativeSession::createFromExe(), llvm::pdb::NativeSession::createFromPdb(), llvm::DIBuilder::createImportedDeclaration(), createImportedModule(), llvm::DIBuilder::createImportedModule(), llvm::DIBuilder::createLexicalBlock(), llvm::DIBuilder::createLexicalBlockFile(), llvm::DIBuilder::createMemberType(), llvm::createMIRProfileLoaderPass(), llvm::DIBuilder::createModule(), llvm::DIBuilder::createObjCIVar(), llvm::DIBuilder::createObjCProperty(), createOnDiskBuffer(), llvm::DIBuilder::createParameterVariable(), llvm::DIBuilder::createSetType(), llvm::DIBuilder::createStaticMemberType(), llvm::DIBuilder::createStructType(), llvm::DIBuilder::createTempFunctionFwdDecl(), llvm::DIBuilder::createTempMacroFile(), llvm::DIBuilder::createTypedef(), llvm::DIBuilder::createUnionType(), llvm::DIBuilder::createVariantMemberType(), llvm::DIBuilder::createVariantPart(), llvm::ThinLTOCodeGenerator::crossModuleImport(), llvm::yaml::MappingTraits< const InterfaceFile * >::NormalizedTBD::denormalize(), llvm::yaml::MappingTraits< const InterfaceFile * >::NormalizedTBD_V4::denormalize(), DiagHandler(), llvm::DWARFDebugLine::Row::dump(), llvm::gsym::GsymReader::dump(), dumpAttribute(), llvm::AADepGraph::dumpGraph(), llvm::gsym::CUInfo::DWARFToGSYMFileIndex(), llvm::CodeViewContext::emitFileChecksums(), emitFileEntry(), llvm::emitFPutC(), llvm::emitFPutS(), llvm::emitFWrite(), llvm::ThinLTOCodeGenerator::emitImports(), llvm::cl::ExpandResponseFiles(), fatalOpenError(), llvm::pdb::DIASession::findCompilandsForSourceFile(), findInputFile(), llvm::pdb::DIASession::findLineNumbers(), llvm::ThinLTOCodeGenerator::gatherImportedSummariesForModule(), llvm::MachO::TextAPIReader::get(), getDbiStreamPtr(), llvm::MDNodeKeyImpl< DIDerivedType >::getHashValue(), llvm::MDNodeKeyImpl< DICompositeType >::getHashValue(), llvm::MDNodeKeyImpl< DISubprogram >::getHashValue(), llvm::MDNodeKeyImpl< DILexicalBlock >::getHashValue(), llvm::MDNodeKeyImpl< DILexicalBlockFile >::getHashValue(), llvm::MDNodeKeyImpl< DICommonBlock >::getHashValue(), llvm::MDNodeKeyImpl< DIGlobalVariable >::getHashValue(), llvm::MDNodeKeyImpl< DILocalVariable >::getHashValue(), llvm::MDNodeKeyImpl< DIObjCProperty >::getHashValue(), llvm::MDNodeKeyImpl< DIImportedEntity >::getHashValue(), llvm::MDNodeKeyImpl< DIMacroFile >::getHashValue(), llvm::unittest::getInputFileDirectory(), llvm::DwarfDebug::getMD5AsBytes(), llvm::DILocalScope::getNonLexicalBlockFileScope(), llvm::DwarfCompileUnit::getOrCreateSourceID(), llvm::pdb::PDBSymbolCompiland::getSourceFileFullPath(), llvm::pdb::DbiStreamBuilder::getSourceFileNameIndex(), llvm::ThinLTOCodeGenerator::internalize(), llvm::MDNodeKeyImpl< DIDerivedType >::isKeyOf(), llvm::MDNodeKeyImpl< DICompositeType >::isKeyOf(), llvm::MDNodeKeyImpl< DISubprogram >::isKeyOf(), llvm::MDNodeKeyImpl< DILexicalBlock >::isKeyOf(), llvm::MDNodeKeyImpl< DILexicalBlockFile >::isKeyOf(), llvm::MDNodeKeyImpl< DICommonBlock >::isKeyOf(), llvm::MDNodeKeyImpl< DIModule >::isKeyOf(), llvm::MDNodeKeyImpl< DIGlobalVariable >::isKeyOf(), llvm::MDNodeKeyImpl< DILocalVariable >::isKeyOf(), llvm::MDNodeKeyImpl< DILabel >::isKeyOf(), llvm::MDNodeKeyImpl< DIObjCProperty >::isKeyOf(), llvm::MDNodeKeyImpl< DIImportedEntity >::isKeyOf(), llvm::MDNodeKeyImpl< DIMacroFile >::isKeyOf(), layout(), LLVMDIBuilderCreateAutoVariable(), LLVMDIBuilderCreateBitFieldMemberType(), LLVMDIBuilderCreateClassType(), LLVMDIBuilderCreateCompileUnit(), LLVMDIBuilderCreateEnumerationType(), LLVMDIBuilderCreateForwardDecl(), LLVMDIBuilderCreateFunction(), LLVMDIBuilderCreateGlobalVariableExpression(), LLVMDIBuilderCreateImportedDeclaration(), LLVMDIBuilderCreateImportedModuleFromAlias(), LLVMDIBuilderCreateImportedModuleFromModule(), LLVMDIBuilderCreateImportedModuleFromNamespace(), LLVMDIBuilderCreateLexicalBlock(), LLVMDIBuilderCreateLexicalBlockFile(), LLVMDIBuilderCreateMemberType(), LLVMDIBuilderCreateObjCIVar(), LLVMDIBuilderCreateObjCProperty(), LLVMDIBuilderCreateParameterVariable(), LLVMDIBuilderCreateReplaceableCompositeType(), LLVMDIBuilderCreateStaticMemberType(), LLVMDIBuilderCreateStructType(), LLVMDIBuilderCreateTempGlobalVariableFwdDecl(), LLVMDIBuilderCreateTempMacroFile(), LLVMDIBuilderCreateTypedef(), LLVMDIBuilderCreateUnionType(), LLVMDIFileGetDirectory(), LLVMDIFileGetFilename(), LLVMDIFileGetSource(), llvm::coverage::CoverageMapping::load(), loadPdbFile(), llvm::yaml::MappingTraits< const InterfaceFile * >::mapKeysToValues(), llvm::yaml::MappingTraits< const InterfaceFile * >::mapKeysToValuesV4(), llvm::yaml::MappingTraits< RemarkLocation >::mapping(), llvm::yaml::MappingTraits< const InterfaceFile * >::mapping(), llvm::yaml::MappingTraits< const InterfaceFile * >::NormalizedTBD::NormalizedTBD(), llvm::yaml::MappingTraits< const InterfaceFile * >::NormalizedTBD_V4::NormalizedTBD_V4(), llvm::ThinLTOCodeGenerator::promote(), llvm::pruneCache(), llvm::jitlink::readTargetMachineArch(), llvm::DWARFDebugLine::Row::reset(), llvm::DOTGraphTraitsPrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnFunction(), llvm::DOTGraphTraitsModulePrinter< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::runOnModule(), llvm::pdb::NativeSession::searchForPdb(), toRemarkLocation(), llvm::DwarfStreamer::translateLineTable(), llvm::MCDwarfLineTableHeader::tryGetFile(), writeCFGToDotFile(), writeDDGToDotFile(), llvm::MachO::TextAPIWriter::writeToStream(), and llvm::yaml::yaml2minidump().

◆ instrorderfile

instrorderfile

Definition at line 204 of file InstrOrderFile.cpp.