clover: Add a function for retrieving a device's preferred ir v3
authorTom Stellard <thomas.stellard@amd.com>
Mon, 23 Apr 2012 16:09:08 +0000 (12:09 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Jun 2012 15:28:09 +0000 (11:28 -0400)
commit613323b2564babc1ecaac25a6cfd786b8c839315
tree699ee772d330d926552a562a32c91c66a0e7e642
parentc4c51153bc33541acd997b56f52a55e606ff3931
clover: Add a function for retrieving a device's preferred ir v3

A device now has two function for getting information about the IR
it needs to return.

ir_format() => returns the preferred IR
ir_target() => returns the triple for the target that is understood by
                 clang/llvm.

v2:
  - renamed ir_target() to ir_format()
  - renamed llvm_triple() to ir_target()

v3:
  - Remove unnecessary include
  - Do proper conversion from std::vector<char> to std::string

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/device.cpp
src/gallium/state_trackers/clover/core/device.hpp