[LLVMbugs] [Bug 11607] New: undefined references in libLLVMTarget.so

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 18 05:13:00 PST 2011


             Bug #: 11607
           Summary: undefined references in libLLVMTarget.so
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target Description Classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: oroppas at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Linking CXX executable ../../bin/opt
../../lib/libLLVMTarget.so: undefined reference to
`llvm::TargetInstrInfo::getOperandLatency(llvm::InstrItineraryData const*,
llvm::SDNode*, unsigned int, llvm::SDNode*, unsigned int) const'
../../lib/libLLVMTarget.so: undefined reference to
`llvm::TargetInstrInfo::getInstrLatency(llvm::InstrItineraryData const*,
llvm::SDNode*) const'
collect2: ld returned 1 exit status
make[2]: *** [bin/opt] Error 1
make[1]: *** [tools/opt/CMakeFiles/opt.dir/all] Error 2
make: *** [all] Error 2

In include/llvm/Target/TargetInstrInfo.h, I see

  virtual int getOperandLatency(const InstrItineraryData *ItinData,
                              const MachineInstr *DefMI, unsigned DefIdx,
                              const MachineInstr *UseMI, unsigned UseIdx)

  virtual int getOperandLatency(const InstrItineraryData *ItinData,
                                SDNode *DefNode, unsigned DefIdx,
                                SDNode *UseNode, unsigned UseIdx) const;

  virtual int getInstrLatency(const InstrItineraryData *ItinData,
                              const MachineInstr *MI,
                              unsigned *PredCost = 0) const;

  virtual int getInstrLatency(const InstrItineraryData *ItinData,
                              SDNode *Node) const;

but only MachineInstr-versions are implemented in

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list