search for: datastructurefortrac

Displaying 2 results from an estimated 2 matches for "datastructurefortrac".

Did you mean: datastructurefortrace
2016 Nov 28
2
LLVM Pass for Instructions in Function (error
...AddrPointer = Inst->getIperand(0); .... if (cast<Operator>(Inst) -> getOpcode() == Instruction::GetElementPtr){ Value* AddrPointer = cast<Value>(Inst); Value* threadId = Inst -> getOperand(1); unsigned AddrSpace = Inst -> getAddressSpace() DataStructureForTrace.push_back (std:make_tuple(new Value(threadId), AddrSpace, 0, new Value(AddrPointer))); } } I get following error (there are more, some visible here and some not. for eg, getAddressSpace not being for Instruction class.): error: cannot convert ‘llvm::inst_iterator {aka llvm::InstIterator&lt...
2016 Nov 28
2
LLVM Pass for Instructions in Function (error
...); > .... > > if (cast<Operator>(Inst) -> getOpcode() == Instruction::GetElementPtr){ > Value* AddrPointer = cast<Value>(Inst); > Value* threadId = Inst -> getOperand(1); > unsigned AddrSpace = Inst -> getAddressSpace() > DataStructureForTrace.push_back (std:make_tuple(new Value(threadId), AddrSpace, 0, new Value(AddrPointer))); > } > } > > I get following error (there are more, some visible here and some not. for eg, getAddressSpace not being for Instruction class.): > > error: cannot convert ‘llvm::inst_itera...