search for: getexternalsymbol

Displaying 5 results from an estimated 5 matches for "getexternalsymbol".

2011 Dec 04
3
[LLVMdev] Implement implicit TLS on Windows - need advice
...ions: - To get the offset to start of .tls section, I have created a new MachineOperand flag. Is this the right approach? If yes then I need a hint where to implement this in the WinCOFFObjectWriter. - How can I code the load of variable _tls_index in SelectionDAG? I have some trouble using DAG.getExternalSymbol and then loading the value. Thanks for your help. Kai -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: tls2.patch URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111204/2878ec05/attachment.ksh> -------------- next part -----...
2011 Dec 06
0
[LLVMdev] Implement implicit TLS on Windows - need advice
...he offset to start of .tls section, I have created a new > MachineOperand flag. Is this the right approach? If yes then I need a hint > where to implement this in the WinCOFFObjectWriter. > - How can I code the load of variable _tls_index in SelectionDAG? I have > some trouble using DAG.getExternalSymbol and then loading the value. > > Thanks for your help. > > Kai Thanks for working on this! The first patch looks fine except that it's emitting to .tls when it should be .tls$. Also, you need to add tests. As for the second patch, that's not how MSVC 2010 emits code (and it ne...
2009 Jul 29
1
[LLVMdev] Lowering intrinsics in Codegen.
...nerates a libcall to "memcpy" as a last resort. See the code snippets below. // FIXME: pass in DebugLoc std::pair<SDValue,SDValue> CallResult = TLI.LowerCallTo(Chain, Type::VoidTy, false, false, false, false, 0, CallingConv::C, false, getExternalSymbol("memcpy", TLI.getPointerTy()), Args, *this, dl); return CallResult.second; I have two questions here: 1. Is it okay to allow the targets to choose the name, similar to RTLIB:: enum way for other calls. ? 2. Why a prototype for "memcpy" isn't being a...
2011 Aug 25
0
[LLVMdev] [RFC] Splitting init.trampoline into init.trampoline and adjust.trampoline
...why you are changing the return type here. It is the return type of "__trampoline_setup" (whatever that is) and that didn't change. > false, false, false, false, 0, CallingConv::C, false, > /*isReturnValueUsed=*/true, > DAG.getExternalSymbol("__trampoline_setup", PtrVT), > Args, DAG, dl); > > - SDValue Ops[] = > - { CallResult.first, CallResult.second }; > - > - return DAG.getMergeValues(Ops, 2, dl); > + return CallResult.second; > } > --- a/lib/Transforms/InstCombine/InstCo...
2011 Aug 23
2
[LLVMdev] [RFC] Splitting init.trampoline into init.trampoline and adjust.trampoline
Hi! Attached set of patches splits llvm.init.trampoline into an "init" phase and an "adjust" phase, as discussed on the "Go on dragonegg" thread. Thanks! -- Sanjoy Das http://playingwithpointers.com -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Split-intrinsics-and-DAG-nodes.patch Type: text/x-diff Size: 8808 bytes Desc: