windelbouwman / ppci

A compiler for ARM, X86, MSP430, xtensa and more implemented in pure Python
https://ppci.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
337 stars 36 forks source link

lang/llvmir/parser: Factor out get_implicit_name(), use for implicit … #126

Open pfalcon opened 3 years ago

pfalcon commented 3 years ago

…labels.

LLVM IR has a habbit of using implicit names in various places, from function params to basic block labels. In such cases, an autogenerated "numbered name" is used.

Signed-off-by: Paul Sokolovsky pfalcon@users.sourceforge.net

pfalcon commented 3 years ago

Continuation of https://github.com/windelbouwman/ppci/pull/124

codecov-io commented 3 years ago

Codecov Report

Merging #126 (2337e60) into master (aacfd18) will decrease coverage by 0.00%. The diff coverage is 14.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #126      +/-   ##
==========================================
- Coverage   78.96%   78.96%   -0.01%     
==========================================
  Files         353      353              
  Lines       47323    47326       +3     
==========================================
+ Hits        37370    37372       +2     
- Misses       9953     9954       +1     
Impacted Files Coverage Δ
ppci/lang/llvmir/parser.py 12.64% <14.28%> (+0.10%) :arrow_up:
ppci/lang/tools/lr.py 96.49% <0.00%> (+0.38%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update aacfd18...2337e60. Read the comment docs.