Mark __{get,set}_system_isa builtins as "internal" functions.
This ensures that they have static linkage, which in turn lets one have multiple object files compiled to multiple targets without having those cause link errors. Issue #355.
This commit is contained in:
@@ -419,6 +419,7 @@ lSetInternalFunctions(llvm::Module *module) {
|
||||
"__floor_uniform_float",
|
||||
"__floor_varying_double",
|
||||
"__floor_varying_float",
|
||||
"__get_system_isa",
|
||||
"__half_to_float_uniform",
|
||||
"__half_to_float_varying",
|
||||
"__insert_int16",
|
||||
@@ -513,6 +514,7 @@ lSetInternalFunctions(llvm::Module *module) {
|
||||
"__round_varying_float",
|
||||
"__rsqrt_uniform_float",
|
||||
"__rsqrt_varying_float",
|
||||
"__set_system_isa",
|
||||
"__sext_uniform_bool",
|
||||
"__sext_varying_bool",
|
||||
"__shuffle2_double",
|
||||
|
||||
Reference in New Issue
Block a user