Displaying 3 results from an estimated 3 matches for "zigllvmgetnativefeatures".
2017 Sep 30
2
invalid code generated on Windows x86_64 using skylake-specific features
I have this code, which works fine on MacOS and Linux hosts:
const char *target_specific_cpu_args;
const char *target_specific_features;
if (g->is_native_target) {
target_specific_cpu_args = ZigLLVMGetHostCPUName();
target_specific_features = ZigLLVMGetNativeFeatures();
} else {
target_specific_cpu_args = "";
target_specific_features = "";
}
g->target_machine = LLVMCreateTargetMachine(target_ref,
buf_ptr(&g->triple_str),
target_specific_cpu_args, target_specific_features, opt_level,
reloc_mo...
2017 Oct 01
1
invalid code generated on Windows x86_64 using skylake-specific features
...ve this code, which works fine on MacOS and Linux hosts:
>
> const char *target_specific_cpu_args;
> const char *target_specific_features;
> if (g->is_native_target) {
> target_specific_cpu_args = ZigLLVMGetHostCPUName();
> target_specific_features = ZigLLVMGetNativeFeatures();
> } else {
> target_specific_cpu_args = "";
> target_specific_features = "";
> }
>
> g->target_machine = LLVMCreateTargetMachine(target_ref,
> buf_ptr(&g->triple_str),
> target_specific_cpu_args, target...
2017 Oct 03
2
invalid code generated on Windows x86_64 using skylake-specific features
...x hosts:
>>>
>>> const char *target_specific_cpu_args;
>>> const char *target_specific_features;
>>> if (g->is_native_target) {
>>> target_specific_cpu_args = ZigLLVMGetHostCPUName();
>>> target_specific_features = ZigLLVMGetNativeFeatures();
>>> } else {
>>> target_specific_cpu_args = "";
>>> target_specific_features = "";
>>> }
>>>
>>> g->target_machine = LLVMCreateTargetMachine(target_ref,
>>> buf_ptr(&g->triple...