Displaying 2 results from an estimated 2 matches for "vect_1".
2011 Mar 15
2
Matching two vectors
Dear R helpers
Suppose I have a vector as
vect_1 = c("AAA", "AA", "A", "BBB", "BB", "B", "CCC")
vect_1_id = c(1:length(vect_1))
Through some process I obtain
vect_2_id = c(2, 3, 7), then I need a new vector say vect_2 which will give me
vect2 = ("AA", "A"...
2015 Jun 18
3
[LLVMdev] problem with replacing an instruction
...tCastInst>(I)) {
BitCastInst* BCI = dyn_cast<BitCastInst>(&I);
for (Use& U : I.operands()) {
Value* V = U.get();
if (!dyn_cast<Instruction>(V)) {
// must be a function's argument
std::vector<llvm::Value*> vect_1;
vect_1.push_back(Builder->getInt64(0));
llvm::GetElementPtrInst* gep1 =
llvm::GetElementPtrInst::Create(V, ArrayRef< Value * >(vect_1) );
BB.getInstList().insert(&I, gep1);
llvm::BitCastInst *bci = new BitCastInst (gep1,
BCI->g...