• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1----------------------
2Slang compiler version
3----------------------
4
5See SlangVersion in frameworks/compile/slang/slang_version.h.  The
6bitcode wrapper has a field that indicates the version of the slang
7compiler that produced that bitcode.  A bitcode consumer is allowed to
8make certain assumptions if the version number is sufficiently high.
9However, only user bitcode has a wrapper -- libclcore.bc does not.
10Therefore, libclcore.bc must not violate ANY of the guarantees
11provided at a particular SlangVersion that allow the aforementioned
12assumptions.  This is important because when user bitcode is linked to
13libclcore.bc (bcc::Script::LinkRuntime()) the linked bitcode is
14treated as having the same SlangVersion as the user bitcode.  This
15implies that whenever we modify (runtime, driver, bcc) to take
16advantage of some new SlangVersion guarantee, we may have to update
17libclcore.bc to conform to that guarantee.
18