search for: ppcbsel

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

Did you mean: ppc64el
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...> #include "llvm/Target/TargetMachine.h" > -#include "llvm/Target/TargetAsmInfo.h" > #include "llvm/ADT/Statistic.h" > #include "llvm/Support/Compiler.h" > #include "llvm/Support/MathExtras.h" > @@ -54,25 +53,6 @@ > return new PPCBSel(); > } > > -/// getNumBytesForInstruction - Return the number of bytes of code > the specified > -/// instruction may be. This returns the maximum number of bytes. > -/// > -static unsigned getNumBytesForInstruction(MachineInstr *MI) { > - switch (MI->getOpcode()) { &...
2008 Apr 15
4
[LLVMdev] Being able to know the jitted code-size before emitting
OK, here's a new patch that adds the infrastructure and the implementation for X86, ARM and PPC of GetInstSize and GetFunctionSize. Both functions are virtual functions defined in TargetInstrInfo.h. For X86, I moved some commodity functions from X86CodeEmitter to X86InstrInfo. What do you think? Nicolas Evan Cheng wrote: > > I think both of these belong to TargetInstrInfo. And