Skip to content

Commit 188b51e

Browse files
committed
reverted to upstream version
1 parent 58a06e4 commit 188b51e

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

llvm_ir_dataset_utils/util/bitcode_module.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
FASTBPE_TIMEOUT_SECONDS = 180
2121
LLVM_DIS_TIMEOUT_SECONDS = 180
2222

23-
"""
24-
bitcode_module: module in bitcode file
2523

26-
Return: (<error status>, <list of t and/or T symbols>)
27-
"""
2824
def get_function_symbols(bitcode_module):
2925
llvm_nm_command_vector = ['llvm-nm', '--defined-only', '--format=posix', '-']
3026
with subprocess.Popen(
@@ -46,13 +42,7 @@ def get_function_symbols(bitcode_module):
4642
module_list.append(symbol_parts[0])
4743
return (None, module_list)
4844

49-
"""
50-
bitcode_module: module in bitcode file
51-
extraction_path: directory path that contains the bitcode file (.bc)
52-
function_symbol:
5345

54-
Return: (<error status>, <path to function module file>)
55-
"""
5646
def extract_individual_function(bitcode_module, extraction_path,
5747
function_symbol):
5848
function_module_name = os.path.join(extraction_path, f'{function_symbol}.bc')

llvm_ir_dataset_utils/util/pass_list_constants.py

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -64,46 +64,3 @@
6464
'CGProfilePass1', 'RelLookupTableConverterPass1', 'AnnotationRemarksPass1',
6565
'VerifierPass1', 'BitcodeWriterPass1'
6666
]
67-
68-
OPT_NONUM_O3_PASS_LIST = [
69-
'Annotation2MetadataPass', 'ForceFunctionAttrsPass',
70-
'InferFunctionAttrsPass', 'CoroEarlyPass',
71-
'LowerExpectIntrinsicPass', 'SimplifyCFGPass', 'SROAPass',
72-
'EarlyCSEPass', 'CallSiteSplittingPass', 'OpenMPOptPass',
73-
'IPSCCPPass', 'CalledValuePropagationPass', 'GlobalOptPass',
74-
'PromotePass', 'InstCombinePass', 'SimplifyCFGPass',
75-
'RequireAnalysisPass<llvm::GlobalsAA, llvm::Module>',
76-
'InvalidateAnalysisPass<llvm::AAManager>',
77-
'RequireAnalysisPass<llvm::ProfileSummaryAnalysis, llvm::Module>',
78-
'InlinerPass', 'InlinerPass', 'PostOrderFunctionAttrsPass',
79-
'ArgumentPromotionPass', 'OpenMPOptCGSCCPass', 'SROAPass',
80-
'EarlyCSEPass', 'SpeculativeExecutionPass', 'JumpThreadingPass',
81-
'CorrelatedValuePropagationPass', 'SimplifyCFGPass', 'InstCombinePass',
82-
'AggressiveInstCombinePass', 'LibCallsShrinkWrapPass', 'TailCallElimPass',
83-
'SimplifyCFGPass', 'ReassociatePass',
84-
'RequireAnalysisPass<llvm::OptimizationRemarkEmitterAnalysis, llvm::Function>',
85-
'LoopSimplifyPass', 'LCSSAPass', 'LoopInstSimplifyPass', 'LoopSimplifyCFGPass',
86-
'LICMPass', 'LoopRotatePass', 'SimpleLoopUnswitchPass', 'SimplifyCFGPass',
87-
'InstCombinePass', 'LCSSAPass', 'LoopIdiomRecognizePass', 'IndVarSimplifyPass',
88-
'LoopDeletionPass', 'LoopFullUnrollPass', 'SROAPass', 'VectorCombinePass',
89-
'MergedLoadStoreMotionPass', 'GVNPass', 'SCCPPass', 'BDCEPass',
90-
'InstCombinePass', 'JumpThreadingPass', 'CorrelatedValuePropagationPass',
91-
'ADCEPass', 'MemCpyOptPass', 'DSEPass', 'LCSSAPass', 'CoroElidePass',
92-
'SimplifyCFGPass', 'InstCombinePass', 'CoroSplitPass', 'InlinerPass',
93-
'InlinerPass', 'PostOrderFunctionAttrsPass', 'ArgumentPromotionPass',
94-
'OpenMPOptCGSCCPass', 'CoroSplitPass',
95-
'InvalidateAnalysisPass<llvm::ShouldNotRunFunctionPassesAnalysis>',
96-
'DeadArgumentEliminationPass', 'CoroCleanupPass', 'GlobalOptPass',
97-
'GlobalDCEPass', 'EliminateAvailableExternallyPass',
98-
'ReversePostOrderFunctionAttrsPass', 'RecomputeGlobalsAAPass', 'Float2IntPass',
99-
'LowerConstantIntrinsicsPass', 'LCSSAPass', 'LoopDistributePass',
100-
'InjectTLIMappings', 'LoopVectorizePass', 'LoopLoadEliminationPass',
101-
'InstCombinePass', 'SimplifyCFGPass', 'SLPVectorizerPass', 'VectorCombinePass',
102-
'InstCombinePass', 'LoopUnrollPass', 'WarnMissedTransformationsPass',
103-
'SROAPass', 'InstCombinePass',
104-
'RequireAnalysisPass<llvm::OptimizationRemarkEmitterAnalysis, llvm::Function>',
105-
'LCSSAPass', 'AlignmentFromAssumptionsPass', 'LoopSinkPass', 'InstSimplifyPass',
106-
'DivRemPairsPass', 'TailCallElimPass', 'SimplifyCFGPass', 'GlobalDCEPass',
107-
'ConstantMergePass', 'CGProfilePass', 'RelLookupTableConverterPass',
108-
'AnnotationRemarksPass', 'VerifierPass', 'BitcodeWriterPass'
109-
]

0 commit comments

Comments
 (0)