Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/codegen/target-spec.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/codegen/target-spec.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3923, Wed Jun 1 17:18:20 2016 UTC revision 3958, Sun Jun 12 19:51:51 2016 UTC
# Line 34  Line 34 
34        (* properties from analysing the program *)        (* properties from analysing the program *)
35          hasGlobals : bool,              (* true if the program has global variables *)          hasGlobals : bool,              (* true if the program has global variables *)
36          hasInputs : bool,               (* true if the program has input variables *)          hasInputs : bool,               (* true if the program has input variables *)
37          isArray : bool,                 (* true for programs that use a fixed array of strands *)          isGrid : bool,                  (* true for programs that use a fixed grid of strands *)
38          hasDynSeq : bool,               (* true for programs that have create dynamic sequences;          hasDynSeq : bool,               (* true for programs that have create dynamic sequences;
39                                           * this does not include programs that just load sequences                                           * this does not include programs that just load sequences
40                                           * from nrrd files. *)                                           * from nrrd files. *)
# Line 64  Line 64 
64              bsp = #bsp tgt,              bsp = #bsp tgt,
65              hasGlobals = Properties.hasProp Properties.HasGlobals props,              hasGlobals = Properties.hasProp Properties.HasGlobals props,
66              hasInputs = Properties.hasProp Properties.HasInputs props,              hasInputs = Properties.hasProp Properties.HasInputs props,
67              isArray = Properties.hasProp Properties.StrandArray props,              isGrid = Properties.hasProp Properties.StrandGrid props,
68              hasDynSeq = Properties.hasProp Properties.DynamicSeq props,              hasDynSeq = Properties.hasProp Properties.DynamicSeq props,
69              hasStabilize = Properties.hasProp Properties.HasStabilizeMethod props,              hasStabilize = Properties.hasProp Properties.HasStabilizeMethod props,
70              hasDie = Properties.hasProp Properties.StrandsMayDie props,              hasDie = Properties.hasProp Properties.StrandsMayDie props,
# Line 118  Line 118 
118    (* return the CPP target definition for the target *)    (* return the CPP target definition for the target *)
119      fun targetDef (p : t) = "DIDEROT_TARGET_" ^ TargetOptions.platformToString (#platform p)      fun targetDef (p : t) = "DIDEROT_TARGET_" ^ TargetOptions.platformToString (#platform p)
120    
121    (* qualify a C function or type name by the target namespace *)    (* qualify a C function or type name by the target namespace, but only for libraries *)
122      fun qualifyCId name (spec : t) = #namespace spec ^ name      fun qualifyCId name (spec : t) =
123      fun qualifyCId' base (spec : t, name) = concat[#namespace spec, base, "_", name]            if (#exec spec) then name else concat[#namespace spec, "_", name]
124        fun qualifyCId' base (spec : t, name) =
125              if (#exec spec)
126                then concat[base, "_", name]
127                else concat[#namespace spec, "_", base, "_", name]
128    
129    end    end

Legend:
Removed from v.3923  
changed lines
  Added in v.3958

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