Skip to content

Commit

Permalink
Merge pull request #135 from dmiller423/master
Browse files Browse the repository at this point in the history
Added include of <llvm/IR/IntrinsicsX86.h> to LLVMCore.cpp
  • Loading branch information
Sonicadvance1 authored Apr 24, 2020
2 parents f2f2d9f + 1daec14 commit b9002bb
Show file tree
Hide file tree
Showing 7 changed files with 147 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Existing

compile_commands.json
vim_rc
Config.json

[Bb]uild*/
[Bb]in/
out/
.vscode/
.vs/

132 changes: 132 additions & 0 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"environments": [
{
"BuildPath": "${projectDir}\\out\\build\\${name}",
"InstallPath": "${projectDir}\\out\\install\\${name}",
"clangcl": "clang-cl.exe",
"cc": "clang",
"cxx": "clang++"
}
],
"configurations": [
{
"name": "WSL-Clang-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"buildRoot": "${env.BuildPath}",
"installRoot": "${env.InstallPath}",
"cmakeExecutable": "/usr/bin/cmake",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"wslPath": "${defaultWSLPath}",
"inheritEnvironments": [ "linux_clang_x64" ],
"addressSanitizerRuntimeFlags": "detect_leaks=0",
"variables": [
{
"name": "WSL",
"type": "BOOL",
"value": "TRUE"
}
]
},
{
"name": "WSL-Clang-Release",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"buildRoot": "${env.BuildPath}",
"installRoot": "${env.InstallPath}",
"cmakeExecutable": "/usr/bin/cmake",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"wslPath": "${defaultWSLPath}",
"inheritEnvironments": [ "linux_clang_x64" ],
"addressSanitizerRuntimeFlags": "detect_leaks=0",
"variables": [
{
"name": "WSL",
"type": "BOOL",
"value": "TRUE"
}
]
},
{
"name": "x86-Clang-Cross-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"buildRoot": "${env.BuildPath}",
"installRoot": "${env.InstallPath}",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"inheritEnvironments": [ "clang_cl_x86" ],
"variables": [
{
"name": "CMAKE_C_COMPILER",
"type": "STRING",
"value": "${env.cc}"
},
{
"name": "CMAKE_CXX_COMPILER",
"type": "STRING",
"value": "${env.cxx}"
},
{
"name": "CMAKE_SYSROOT",
"type": "STRING",
"value": "${env.fexsysroot}"
}
]
},
{
"name": "x64-Clang-Cross-Release",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"buildRoot": "${env.BuildPath}",
"installRoot": "${env.InstallPath}",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"inheritEnvironments": [ "clang_cl_x86" ],
"variables": [
{
"name": "CMAKE_C_COMPILER",
"type": "STRING",
"value": "${env.cc}"
},
{
"name": "CMAKE_CXX_COMPILER",
"type": "STRING",
"value": "${env.cxx}"
},
{
"name": "CMAKE_SYSROOT",
"type": "STRING",
"value": "${env.fexsysroot}"
}
]
},
{
"name": "Linux-Clang-Remote-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"cmakeExecutable": "/usr/bin/cmake",
"remoteCopySourcesExclusionList": [ ".vs", ".vscode", ".git", ".github", "build", "out", "bin" ],
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"inheritEnvironments": [ "linux_clang_x64" ],
"remoteMachineName": "${env.fexremote}", // string "-662331587;z.port0.org (username=ubuntu, port=22, authentication=PrivateKey)",
"remoteCMakeListsRoot": "$HOME/projects/.vs/${projectDirName}/src",
"remoteBuildRoot": "$HOME/projects/.vs/${projectDirName}/build/${name}",
"remoteInstallRoot": "$HOME/projects/.vs/${projectDirName}/install/${name}",
"remoteCopySources": true,
"rsyncCommandArgs": "-t --delete --delete-excluded",
"remoteCopyBuildOutput": false,
"remoteCopySourcesMethod": "rsync",
"addressSanitizerRuntimeFlags": "detect_leaks=0",
"variables": []
}
]
}
6 changes: 6 additions & 0 deletions External/FEXCore/Source/Interface/Core/LLVMJIT/LLVMCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/LegacyPassManager.h>
#include <llvm/IR/Verifier.h>

// This seems to be needed for LLVM-10, and isn't needed/built from IntrinsicsX86.td in LLVM-9?
#if defined(_M_X86_64) && __has_include (<llvm/IR/IntrinsicsX86.h>)
#include <llvm/IR/IntrinsicsX86.h>
#endif

#include <llvm/Passes/PassBuilder.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/TargetSelect.h>
Expand Down
2 changes: 1 addition & 1 deletion Source/Tools/Debugger/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(SRCS Main.cpp
DebuggerState.cpp
Context.cpp
FEXImGui.cpp
IMGui.cpp
IMGui_I.cpp
IRLexer.cpp
GLUtils.cpp
MainWindow.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "DebuggerState.h"
#include "Disassembler.h"
#include "FEXImGui.h"
#include "IMGui.h"
#include "IMGui_I.h"
#include "LogManager.h"
#include "IRLexer.h"
#include "Common/Config.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Source/Tools/Debugger/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "MainWindow.h"
#include "Context.h"
#include "GLUtils.h"
#include "IMGui.h"
#include "IMGui_I.h"
#include "DebuggerState.h"
#include "LogManager.h"

Expand Down

0 comments on commit b9002bb

Please sign in to comment.