<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> /// PredicateInstruction - Convert the instruction into a predicated<br> /// instruction.
<br> virtual void PredicateInstruction(MachineInstr *MI,<br>- std::vector<MachineOperand> &Cond) const {<br>- assert(0 && "Target didn't implement PredicateInstruction!");
<br>- abort();<br>- }<br>+ std::vector<MachineOperand> &Cond) const;<br></blockquote></div><br><br>I'm getting a build error because the function PredicateInstruction wasn't implemented.
<br><br>Lauro<br><br>llvm[2]: Linking Debug executable llc<br>/home/laurov/llvm/llvm/build/Debug/lib/LLVMIA64.o:(.rodata._ZTVN4llvm13IA64InstrInfoE[vtable for llvm::IA64InstrInfo]+0x3c): undefined reference to `llvm::TargetInstrInfo::PredicateInstruction(llvm::MachineInstr*, std::vector<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >&) const'
<br>/home/laurov/llvm/llvm/build/Debug/lib/LLVMAlpha.o:(.rodata._ZTVN4llvm14AlphaInstrInfoE[vtable for llvm::AlphaInstrInfo]+0x3c): undefined reference to `llvm::TargetInstrInfo::PredicateInstruction(llvm::MachineInstr*, std::vector<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >&) const'
<br>/home/laurov/llvm/llvm/build/Debug/lib/LLVMPowerPC.o:(.rodata._ZTVN4llvm12PPCInstrInfoE[vtable for llvm::PPCInstrInfo]+0x3c): undefined reference to `llvm::TargetInstrInfo::PredicateInstruction(llvm::MachineInstr*, std::vector<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >&) const'
<br>/home/laurov/llvm/llvm/build/Debug/lib/LLVMSparc.o:(.rodata._ZTVN4llvm14SparcInstrInfoE[vtable for llvm::SparcInstrInfo]+0x3c): undefined reference to `llvm::TargetInstrInfo::PredicateInstruction(llvm::MachineInstr*, std::vector<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >&) const'
<br>/home/laurov/llvm/llvm/build/Debug/lib/LLVMX86.o:(.rodata._ZTVN4llvm12X86InstrInfoE[vtable for llvm::X86InstrInfo]+0x3c): undefined reference to `llvm::TargetInstrInfo::PredicateInstruction(llvm::MachineInstr*, std::vector<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >&) const'
<br>/home/laurov/llvm/llvm/build/Debug/lib/libLLVMTarget.a(TargetInstrInfo.o):(.rodata._ZTVN4llvm15TargetInstrInfoE[vtable for llvm::TargetInstrInfo]+0x3c): more undefined references to `llvm::TargetInstrInfo::PredicateInstruction(llvm::MachineInstr*, std::vector<llvm::MachineOperand, std::allocator<llvm::MachineOperand> >&) const' follow
<br>collect2: ld returned 1 exit status<br><br>