Displaying 2 results from an estimated 2 matches for "mdconst".
Did you mean:
const
2016 Nov 14
2
getting the value back from metadata
Hello,
I'm trying to extract the value out of my MDNode, but for some reason I can't.
For example, if one part of the code gets an MDNode that was created as follows:
Metadata* vals[2] =
{ ValueAsMetadata::get(&F), ValueAsMetadata::get(ConstantInt::get(context, 135)) };
MDNode* mdnode = MDNode::get(context, vals);
Is it possible to extract the value of the constant int
2015 Apr 24
5
[LLVMdev] Loss of precision with very large branch weights
In PR 22718, we are looking at issues with long running applications
producing non-representative frequencies. For example, in these two loops:
int g = 0;
__attribute__((noinline)) void bar() {
g++;
}
extern int printf(const char*, ...);
int main()
{
int i, j, k;
for (i = 0; i < 1000000; i++)
bar();
printf ("g = %d\n", g);
g = 0;
for (i = 0; i < 500000; i++)