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

SCM Repository

[diderot] View of /branches/vis12-cl/src/compiler/codegen/target-util.sml
ViewVC logotype

View of /branches/vis12-cl/src/compiler/codegen/target-util.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3222 - (download) (annotate)
Mon Jul 20 22:20:40 2015 UTC (4 years ago) by jhr
File size: 1552 byte(s)
add information about compiler to generated code
(* target-util.sml
 *
 * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 *
 * Utility support for target selection, etc.
 *)

structure TargetUtil =
  struct

    datatype target
      = TARGET_C                (* C code *)
      | TARGET_CL               (* C + OpenCL *)
      | TARGET_CUDA             (* C + CUDA *)

  (* the target descriptor collects together the information specified on the Diderot
   * compiler's command-line.
   *)
    type target_desc = {
        version : string,               (* diderotc compiler version *)
        srcFile : string,               (* source filename *)
        outDir : string,                (* directory to put output *)
        outBase : string,               (* basename for output or name of executable *)
        exec : bool,                    (* generate standalone executable? *)
        snapshot : bool,                (* generate functions to get snapshot *)
        target : target,                (* target platform *)
        namespace : string,             (* optional namespace prefix *)
        parallel : bool,                (* parallel components *)
        double : bool,                  (* true for double-precision candidates *)
        longint : bool,                 (* true for 64-bit integers (not currently used) *)
        debug : bool,                   (* true if debugging of the target is enabled *)
        bsp : bool                      (* true if BSP style execution should always be used *)
      }

  end

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