[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h

Evan Cheng evan.cheng at apple.com
Wed May 16 14:20:59 PDT 2007


It's there now.

Evan
On May 16, 2007, at 2:16 PM, Lauro Ramos Venancio wrote:

>
>    /// 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
>




More information about the llvm-commits mailing list