/// PredicateInstruction - Convert the instruction into a predicated /// instruction. virtual void PredicateInstruction(MachineInstr *MI, - std::vector<MachineOperand> &Cond) const { - assert(0 && "Target didn't implement PredicateInstruction!"); - abort(); - } + std::vector<MachineOperand> &Cond) const;
I'm getting a build error because the function PredicateInstruction wasn't implemented. Lauro llvm[2]: Linking Debug executable llc /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' /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' /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' /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' /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' /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 collect2: ld returned 1 exit status
_______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits