Displaying 7 results from an estimated 7 matches for "numedges".
2009 Jun 18
3
[LLVMdev] Initialising global Array
Hi,
I try to create a array that has a nonzero initialiser:
What i do is, first create the array type.
> const ArrayType *ATy = ArrayType::get(Type::Int32Ty, NumEdges);
Then create some constant values for the initializer.
> std::vector<Constant*> Initializer; Initializer.reserve(NumEdges);
> APInt zero(32,0); Constant* zeroc = ConstantInt::get(zero);
> APInt minusone(32,-1); Constant* minusonec = ConstantInt::get(minusone);
Create the...
2009 Jun 18
0
[LLVMdev] Initialising global Array
Andreas Neustifter wrote:
> Hi,
>
> I try to create a array that has a nonzero initialiser:
>
> What i do is, first create the array type.
>
> > const ArrayType *ATy = ArrayType::get(Type::Int32Ty, NumEdges);
>
> Then create some constant values for the initializer.
>
> > std::vector<Constant*> Initializer; Initializer.reserve(NumEdges);
>
>
I ran the following two functions in a ModulePass. The Initializer
initialization is the difference.
static void andiTest1(Mod...
2007 Apr 24
2
Error in clusterApply(): recursive default argument reference
...r message :
-----------------------------------------------------------
### libraries ###
library(graph)
library(snow)
### functions ###
nullDistribIntersection <- function(g1, g2, perm=1000)
{
n1 <- nodes(g1)
sapply(1:perm,
function(i)
{
nodes(g1) <- sample(n1)
numEdges(intersection(g1,g2))
}
)
}
parNullDistribIntersection <- function(g1, g2, perm=1000, cl=cl)
{
n1 <- nodes(g1)
parSapply(cl, 1:perm,
function(i)
{
nodes(g1) <- sample(n1)
numEdges(intersection(g1,g2))
}
)
}
## initialize the graph and the rand seed
s...
2009 Jul 01
0
[LLVMdev] Profiling in LLVM Patch
...{
> + cerr << "WARNING: cannot insert edge profiling into a module"
> + << " with no main function!\n";
> + return false; // No main, no instrumentation!
> + }
> +
> + std::set<BasicBlock*> BlocksToInstrument;
> + unsigned NumEdges = 0;
> + for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) {
> + if (F->isDeclaration()) continue;
> + // use one counter for the edge (0,entry) for each function
> + ++NumEdges;
> + for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++...
2009 Jun 29
7
[LLVMdev] Profiling in LLVM Patch
Hi all,
as proposed in
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-February/020396.html
I implemented the algorithm presented in [Ball94]. It only instruments
the minimal number of edges necessary for edge profiling.
The main changes introduced by this patch are:
*) a interface compatible rewrite of ProfileInfo
*) a cleanup of ProfileInfoLoader
(some functionality in ProfileInfoLoader
2009 Jul 01
12
[LLVMdev] Profiling in LLVM Patch
...; "WARNING: cannot insert edge profiling into a module"
>> + << " with no main function!\n";
>> + return false; // No main, no instrumentation!
>> + }
>> +
>> + std::set<BasicBlock*> BlocksToInstrument;
>> + unsigned NumEdges = 0;
>> + for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) {
>> + if (F->isDeclaration()) continue;
>> + // use one counter for the edge (0,entry) for each function
>> + ++NumEdges;
>> + for (Function::iterator BB = F->begin(), E = F-&g...
2009 Jun 24
0
Matrix vignette error in June 24 RC
...ric/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
graph.has.weights: no visible global function definition for
?edgeDataDefaults?
graph.wgtMatrix: no visible global function definition for ?numEdges?
graph.wgtMatrix: no visible global function definition for ?nodes?
graph.wgtMatrix: no visible global function definition for
?edgeDataDefaults?
graph.wgtMatrix: no visible global function definition for ?edgeData?
Tsp2grNEL: no visible global function definition for ?ftM2graphNEL?
coerce,graphAM-...