Displaying 11 results from an estimated 11 matches for "numnod".
Did you mean:
nummod
2010 Nov 08
2
[LLVMdev] Creating tablegen patterns for intrinsics with no return value.
....amdil.atomic.add.gi32.noret to the correct instruction with the following code sequence.
LowerINTRINSIC_W_CHAIN(...)
{
...
case AMDILIntrinsic::AMDIL_atomic_add_gu32_noret:
IntNo = AMDILISD::ATOM_G_ADD_NORET; break;
...
SDValue Ops[6];
SDValue chain = Op.getOperand(0);
unsigned numNodes = 0;
if (inChain) {
Ops[numNodes++] = chain;
}
SDValue Chain = Op.getOperand(0);
Ops[numNodes++] = Op.getOperand((inChain) ? 2 : 1);
Ops[numNodes++] = DAG.getConstant(1, MVT::i32);
Ops[numNodes++] = DAG.getTargetConstant(0, MVT::i32);
Op = DAG.getNode(IntNo, dl, EVT::EVT(MVT::i3...
2010 Nov 08
0
[LLVMdev] Creating tablegen patterns for intrinsics with no return value.
...nstruction with the following code sequence.
>
> LowerINTRINSIC_W_CHAIN(…)
> {
> …
> case AMDILIntrinsic::AMDIL_atomic_add_gu32_noret:
> IntNo = AMDILISD::ATOM_G_ADD_NORET; break;
> …
> SDValue Ops[6];
> SDValue chain = Op.getOperand(0);
> unsigned numNodes = 0;
> if (inChain) {
> Ops[numNodes++] = chain;
> }
> SDValue Chain = Op.getOperand(0);
> Ops[numNodes++] = Op.getOperand((inChain) ? 2 : 1);
> Ops[numNodes++] = DAG.getConstant(1, MVT::i32);
> Ops[numNodes++] = DAG.getTargetConstant(0, MVT::i32);
> Op =...
2010 Nov 08
1
[LLVMdev] Creating tablegen patterns for intrinsics with no return value.
...> > LowerINTRINSIC_W_CHAIN(...)
> > {
> > ...
> > case AMDILIntrinsic::AMDIL_atomic_add_gu32_noret:
> > IntNo = AMDILISD::ATOM_G_ADD_NORET; break;
> > ...
> > SDValue Ops[6];
> > SDValue chain = Op.getOperand(0);
> > unsigned numNodes = 0;
> > if (inChain) {
> > Ops[numNodes++] = chain;
> > }
> > SDValue Chain = Op.getOperand(0);
> > Ops[numNodes++] = Op.getOperand((inChain) ? 2 : 1);
> > Ops[numNodes++] = DAG.getConstant(1, MVT::i32);
> > Ops[numNodes++] = DAG.getTarge...
2012 Sep 20
1
R/C++ interfaces: crashes when using .c(), followed by correct results when R restarted
..."C:\\Ccodefortransortmodel\\ mylatestversion.dll")
* Next, I called equil_distC with
testres2 <- .C("equil_distC", as.integer(rowmaxfiets),as.integer(colmaxfiets), as.double(nodes), as.integer(links_dist_calc), as.integer(cyclepathsfirstline), as.integer(numzones), as.integer(numnodes), as.integer(numlinks), result = double(6))
* About half of the time, whenever I had changed the C++ code, the results were either nonsensical or R crashed.
* When R did not crash, I unloaded the dll with:
dyn.unload("C:\\Ccodefortransortmodel\\equildistCforodpair_2012_09_20v8.dll")
* N...
2010 Aug 08
0
[LLVMdev] Usage of pointers to elements of a std::vector that might be reallocated
...ies in the vector for each of the SUnits we are creating. This
// ensure that reallocation of the vector won't happen, so SUnit*'s won't get
// invalidated.
// FIXME: Multiply by 2 because we may clone nodes during scheduling.
// This is a temporary workaround.
SUnits.reserve(NumNodes * 2);
So for some reason *2 is not enough in your case. I guess the right
thing here is to either have a way to reliably estimate the number of
SUnits (if it's at all possible) or use a container that doesn't
reallocate on insert.
Eugene
On Sun, Aug 8, 2010 at 3:11 PM, Amaury Pouly <...
2010 Aug 08
2
[LLVMdev] Usage of pointers to elements of a std::vector that might be reallocated
Oh yes you're right, I missed that :) But the point still hold.
Amaury Pouly
2010/8/8 Eugene Toder <eltoder at gmail.com>
> > Not only this code does not compile with NDEBUG set
>
> I may be missing something, but why does it not compile with -DNDEBUG?
> assert() macro expands to noop when NDEBUG is set.
>
> Eugene
>
> On Sun, Aug 8, 2010 at 2:19 PM, Amaury
2018 Jul 23
2
LLVM FunctionType cannot be returned as VectorType?
.../////////////////////////////////////////////////////
My function prototype definition:
auto vectorDataType = VectorType::get(IntegerType::getIntNTy(TheContext,
64), 4);
std::vector<Type *> vecArguments;
for (Uint64 nodeId = startOfLeaves; nodeId < numNodes;
++nodeId) {
vecArguments.push_back(vectorDataType);
}
proto = FunctionType::get(vectorDataType,//int64*4 =
__m256i
vecArguments, false);
////////////////////////////////////////////////...
2002 Dec 08
3
[LLVMdev] olden bmks
...follows:
#!/bin/sh
echo "Generating assembly file."
llc -f $1.bc
echo "Assembling s file."
/opt/SUNWspro/bin/cc -xarch=v9 -lm $1.s -o $1
echo "Removing s file."
rm $1.s
and here is an example of the symbol issues:
Undefined first referenced
symbol in file
NumNodes Olden-bh.o
nbody Olden-bh.o
For each bmk, the undefined symbols are coming from args.c as far as I can
tell. Do I need to link in args.c's bc file for each of them or am I
doing something terribly wrong?
____________________________...
2018 Jul 23
2
LLVM FunctionType cannot be returned as VectorType?
...>
> My function prototype definition:
>
>
>
> auto vectorDataType = VectorType::get(IntegerType::getIntNTy(TheContext,
> 64), 4);
>
> std::vector<Type *> vecArguments;
>
> for (Uint64 nodeId = startOfLeaves; nodeId < numNodes;
> ++nodeId) {
>
> vecArguments.push_back(vectorDataType);
>
> }
>
> proto = FunctionType::get(vectorDataType,//int64*4 =
> __m256i
>
> vecArguments, false);...
2018 Jul 20
2
LLVM FunctionType cannot be returned as VectorType?
Dear all,
I am using LLVM C++ API to generate some code. In particular, I am dealing
with AVX2 SIMD API which uses __m256i.
My function input types a set of vectors and return type is also a vector.
///////////////////////////////////////////////////////////////////////////////////////////
arguments.push_back(VectorType::get(IntegerType::getIntNTy(TheContext, 64),
4));//int64*4 = __m256i
2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
...of(xc_memory_chunk_t) *
+ PUBLIC_MAXCHUNKS );
+ set_xen_guest_handle(info.memory_chunks, chunks);
+
+ /* make space for node_to_cpu mapping */
+ map = (xc_node_to_cpu_t *)malloc( sizeof(xc_node_to_cpu_t) *
+ PUBLIC_MAX_NUMNODES );
+ set_xen_guest_handle(info.node_to_cpu, map);
+
if ( xc_physinfo(self->xc_handle, &info) != 0 )
return PyErr_SetFromErrno(xc_error);
@@ -489,16 +502,56 @@ static PyObject *pyxc_physinfo(XcObject
if(q>cpu_cap)
*(q-1)=0;
- return Py_BuildValue(&...