search for: mybackend

Displaying 7 results from an estimated 7 matches for "mybackend".

Did you mean: my_backend
2012 Jun 19
1
[LLVMdev] llvm::Triple error in new backend
Hi, I try to write a new backend. At the moment I run into a compiler error and don't know how I can solve this problem. Like several other targets I have a file 'mybackendTargetInfo.cpp' in the subdirectory 'TargetInfo'. The content of this file is: #include "mybackend.h" #include "llvm/Module.h" #include "llvm/Support/TargetRegistry.h" using namespace llvm; Target llvm::TheMybackendTarget; extern "C" void LLVMIn...
2008 Nov 25
1
[LLVMdev] AddReadAttrs vs. TargetMachine?
...hod for invoking several passes. I tried to use the same method, but it failed on runtime. Running llc with my backend produces (mac os x 10.5 and llvm 2.4): dyld: lazy symbol binding failed: Symbol not found: __ZN4llvm22createAddReadAttrsPassEv Referenced from: /myproject/build/Release/lib/mybackend.dylib Expected in: flat namespace dyld: Symbol not found: __ZN4llvm22createAddReadAttrsPassEv Referenced from: /myproject/build/Release/lib/mybackend.dylib Expected in: flat namespace Is it even possible to invoke such a pass from a backend? Or is it only possible to run opt -addreadatt...
2015 Jul 22
1
[LLVMdev] prevent an SDValue from lower into an immediate field in load
Hi there, I am doing relocation in my backend by calling my function getAddrNonPic: SDValue getAddrNonPIC(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG)const{ SValue Hi=getTarget(N,Ty,DAG, MyBackend::Hi16); SValue Lo=getTarget(N,Ty,DAG, MyBackend::Lo16); return DAG.getNode(ISD::ADD, DL, Ty, DAG.getNode(MyBackend::Hi16, DL, Ty, Hi), DAG.getNode(MyBackend::Lo16, DL, Ty, Ho)); } But sometimes a load instruction is lowered into: (r2=lo16(symbol)) lw r1, r2(Hi16(symbol)) But what I w...
2007 Mar 23
1
[LLVMdev] strange pass behaviour
...as .so libraries under linux and i am using the amd64 version with a self compiled llvm-gcc. With this call it works: opt --load=/llvm/Debug/lib/MParSchedule.so -MParSchedule -f -o opt.o a.out.bc With the following it won't: llc --load=/llvm/Debug/lib/MParSchedule.so -load=/llvm/Debug/lib/libMyBackend.so -f -march=MyBackend a.out.bc I am quite puzzled and would be happy if anyone would have a suggestion what goes wrong. Which means the linefor the first instruction of the second block processed is missing (tmp1) for my unoptimized example bytecode attached. Am i not allowed to load a pass dyn...
2012 May 07
1
[LLVMdev] TableGen backend API refactoring.
tl;dr: is anyone opposed to making the interface to a TableGen backend be: void MyBackend(RecordKeeper &, raw_ostream & /* maybe some other args, per backend's needs */); ?? Currently, this is the "interface" for a TableGen backend: struct TableGenBackend { virtual void anchor(); virtual ~TableGenBackend() {} // run - All TableGen backends should implemen...
2008 Oct 13
0
[LLVMdev] Weirdness w/ llvm control flow graph generation
...es and the IR code. Any help with figuring out what is causing this craziness would be greatly appreciated. It was compiled with: llvm-as < float/test_fc_while_continue_gt.ll | opt -std-compile-opts -loopsimplify -simplifycfg -print-cfg > float/test_fc_while_continue_gt.bc llc -march=mybackend float/test_fc_while_continue_gt.bc Thanks for your time. Micah Villmow Systems Engineer Advanced Technology & Performance Advanced Micro Devices Inc. 4555 Great America Pkwy, Santa Clara, CA. 95054 P: 408-572-6219 F: 408-572-6596 -------------- next part -------------- An HTM...
2009 Jun 10
2
[LLVMdev] Call to address 0 gets removed
> Calling 0 is undefined behavior; the optimizer is within its rights to > remove this. Why do you want to call 0? For example, on embedded platforms you call 0 to do a soft reset. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev