Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /MLRISC/releases/release-110.60/instructions/freqProps.sml
ViewVC logotype

Annotation of /MLRISC/releases/release-110.60/instructions/freqProps.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 469 - (view) (download)
Original Path: sml/branches/SMLNJ/src/MLRISC/instructions/freqProps.sml

1 : monnier 409 (*
2 :     * Generic module for extracting the frequency information.
3 :     *)
4 :    
5 :     functor FreqProps(Props : INSN_PROPERTIES) : FREQUENCY_PROPERTIES =
6 :     struct
7 :    
8 :     structure I = Props.I
9 :    
10 :     (* Branch probability in percentage *)
11 :     fun branchProb instr =
12 : monnier 469 case #get BasicAnnotations.BRANCH_PROB (#2(Props.getAnnotations instr)) of
13 :     SOME b => b
14 :     | NONE => 50
15 : monnier 409
16 :     end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0