Displaying 5 results from an estimated 5 matches for "llvmcodemodeldefault".
2017 Sep 19
2
What is the correct Targettripple for generating a X86 COFF-Files on windows?
...binary file for my module. I
queried the X86-Target and called LLVMCreateTargetMachine this way:
> LTarget := LLVMGetTargetFromName('x86');
> LMachine := LLVMCreateTargetMachine(LTarget, 'i386-win32-msvc', nil,
> nil, LLVMCodeGenLevelDefault, LLVMRelocDefault, LLVMCodeModelDefault);
>
A call to LLVMTargetMachineEmitToFile using LLVMObjectFile does output a
obj-file. But it seems it is an ELF-File. Looking through the code(and
looking into the Tripple.cpp) i am not sure what to do exactly for creating
a COFF-File.
Best regards
Alexander B.
-------------- next part ------...
2017 Sep 19
0
What is the correct Targettripple for generating a X86 COFF-Files on windows?
...dule. I
> queried the X86-Target and called LLVMCreateTargetMachine this way:
>
>> LTarget := LLVMGetTargetFromName('x86');
>> LMachine := LLVMCreateTargetMachine(LTarget, 'i386-win32-msvc',
>> nil, nil, LLVMCodeGenLevelDefault, LLVMRelocDefault, LLVMCodeModelDefault);
>>
>
> A call to LLVMTargetMachineEmitToFile using LLVMObjectFile does output a
> obj-file. But it seems it is an ELF-File. Looking through the code(and
> looking into the Tripple.cpp) i am not sure what to do exactly for creating
> a COFF-File.
>
> Best regards
> Al...
2017 Sep 30
2
invalid code generated on Windows x86_64 using skylake-specific features
...} 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_mode, LLVMCodeModelDefault);
char *ZigLLVMGetHostCPUName(void) {
std::string str = sys::getHostCPUName();
return strdup(str.c_str());
}
char *ZigLLVMGetNativeFeatures(void) {
SubtargetFeatures features;
StringMap<bool> host_features;
if (sys::getHostCPUFeatures(host_features)) {
for (au...
2017 Oct 01
1
invalid code generated on Windows x86_64 using skylake-specific features
...ic_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_mode, LLVMCodeModelDefault);
>
>
>
> char *ZigLLVMGetHostCPUName(void) {
> std::string str = sys::getHostCPUName();
> return strdup(str.c_str());
> }
>
> char *ZigLLVMGetNativeFeatures(void) {
> SubtargetFeatures features;
>
> StringMap<bool> host_features;
> i...
2017 Oct 03
2
invalid code generated on Windows x86_64 using skylake-specific features
...specific_features = "";
>>> }
>>>
>>> g->target_machine = LLVMCreateTargetMachine(target_ref,
>>> buf_ptr(&g->triple_str),
>>> target_specific_cpu_args, target_specific_features,
>>> opt_level, reloc_mode, LLVMCodeModelDefault);
>>>
>>>
>>>
>>> char *ZigLLVMGetHostCPUName(void) {
>>> std::string str = sys::getHostCPUName();
>>> return strdup(str.c_str());
>>> }
>>>
>>> char *ZigLLVMGetNativeFeatures(void) {
>>> Subtarget...