Set the LLVM module's target triple
Set the LLVM module's target triple

The target triple is used by MemorySanitizer to determine where to map
the shadow and origin data, which is OS specific. When not set, the
MemorySanitizer::initializeModule() method, which inserts an __msan_init
call to the module's constructor list, produces an
"unsupported operating system" error.

Note that JITs like Reactor have no use for a module constructor list
(__msan_init gets called during executable startup), but there is
currently no way to skip this initialization. Leaving it unused is fine
though. Likewise, setting the target triple has not other known JIT uses
at the moment, but it can't hurt.

Bug: b/155148722
Change-Id: Ia31d8c71ee495aadd91530a8d1c5fdc93add8e01
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/49853
Kokoro-Result: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Reviewed-by: Antonio Maiorano <86d87a6550afb6b07035c9743fa181900589f7e0@google.com>

google/swiftshader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,google/swiftshader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,google/swiftshader,bkaradzic/SwiftShader