-
Notifications
You must be signed in to change notification settings - Fork 9
Add support for LLVM 19 and 20 (not CI tested) #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Changes from all commits
e2ca641
2ed94a6
fa88ac5
2ea3d34
df8d09d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -36,8 +36,8 @@ class MetaDataFactory { | |||||||||
template <class... T> | ||||||||||
static CRTPBase* create(const std::string& s, const nlohmann::json& j) { | ||||||||||
if (data().find(s) == data().end()) { | ||||||||||
MCGLogger::instance().getErrConsole()->template warn( | ||||||||||
"Could not create: {}, the Metadata is unknown in you application", s); | ||||||||||
MCGLogger::instance().getErrConsole()->warn("Could not create: {}, the Metadata is unknown in you application", | ||||||||||
s); | ||||||||||
Comment on lines
+39
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would prefer to have the error in one single line, instead of having only the formatting parameter in a new line.
Suggested change
|
||||||||||
return nullptr; | ||||||||||
} | ||||||||||
return data().at(s)(j); | ||||||||||
|
@@ -48,7 +48,7 @@ class MetaDataFactory { | |||||||||
friend T; | ||||||||||
|
||||||||||
static bool registerT() { | ||||||||||
MCGLogger::instance().getConsole()->template trace("Registering {} \n", T::key); | ||||||||||
MCGLogger::instance().getConsole()->trace("Registering {} \n", T::key); | ||||||||||
const auto name = T::key; | ||||||||||
MetaDataFactory::data()[name] = [](const nlohmann::json& j) -> CRTPBase* { return new T(j); }; | ||||||||||
return true; | ||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,12 +240,12 @@ class PiraOneData : public metacg::MetaData::Registrar<PiraOneData> { | |
template <typename T> | ||
inline void setPiraOneData(T node, int numStmts = 0, bool hasBody = false, bool dominantRuntime = false, | ||
bool inPrevProfile = false) { | ||
const auto& [has, data] = node->template checkAndGet<PiraOneData>(); | ||
if (has) { | ||
data->setNumberOfStatements(numStmts); | ||
data->setHasBody(hasBody); | ||
data->setDominantRuntime(dominantRuntime); | ||
data->setComesFromCube(inPrevProfile); | ||
const auto& [has, data] = node->template checkAndGet<PiraOneData>(); | ||
if (has) { | ||
data->setNumberOfStatements(numStmts); | ||
data->setHasBody(hasBody); | ||
data->setDominantRuntime(dominantRuntime); | ||
data->setComesFromCube(inPrevProfile); | ||
Comment on lines
+243
to
+248
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a formatting error or correction? |
||
} else { | ||
assert_pira_one_data(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think this is a change that is not related to the ability to use newer llvm versions. Am I missing something?
Will this break some GCC compatibility with older versions or so?