search for: getbase

Displaying 20 results from an estimated 21 matches for "getbase".

2011 Nov 16
0
[LLVMdev] CallSite in innermost loop
...to support such scenarios. That does not mean you can not use LoopInfo in your pass. It means, you'll have to manage the memory, satisfy its needs and ensure validity of the info yourself. You could do something like, LoopInfo LI; DominatorTree DT; .... DT.recalculate(F) LI.Calculate(DT.getBase()); ... ... use LI ... /* Make sure F is not modified since DT and LI were calculate. */ ... DT.releaseMemory(); LI.releaseMemory(); - Devang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111116/3da1...
2011 Nov 16
2
[LLVMdev] CallSite in innermost loop
In order to detect whether CallSite is present in innermost loop, do I need to insert logic from LoopInfo pass for collecting loops, within a CallGraphSCC pass?   Is there any other approach for this?   Regards, Pankaj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111116/cd9d51b7/attachment.html>
2011 Jul 29
2
[LLVMdev] Accessing Dominator Tree
...sis frameworks (opt, etc.).  In what I am doing, I need to be able to access the dominator tree for a given function.  Is there a way I can instantiate a DominatorTree object outside the existing analysis frameworks? I have tried several things all along the lines of: DominatorTree DT; DT.getBase().recalculate(F); Everything I have tried results in an assertion failure when trying to access the front() of what I assume is the DominatorTree: Assertion failed: !empty() && "Called front() on empty list!" If anyone has an example of how to do this, I would really a...
2011 Jul 29
0
[LLVMdev] Accessing Dominator Tree
...t know if using a PassManager is what you consider to be "outside the existing LLVM framework." I'm hoping your only objection is to using the opt tool to run LLVM passes. -- John T. > I have tried several things all along the lines of: > > DominatorTree DT; > > DT.getBase().recalculate(F); > > Everything I have tried results in an assertion failure when trying to > access the front() of what I assume is the DominatorTree: > > Assertion failed: !empty() && "Called front() on empty list!" > > If anyone has an example of how to d...
2011 Jul 29
2
[LLVMdev] Accessing Dominator Tree
...don't know if using a PassManager is what you consider to be "outside the existing LLVM framework."  I'm hoping your only objection is to using the opt tool to run LLVM passes. -- John T.   I have tried several things all along the lines of:   DominatorTree DT; DT.getBase().recalculate(F);   Everything I have tried results in an assertion failure when trying to access the front() of what I assume is the DominatorTree:   Assertion failed: !empty() && "Called front() on empty list!"   If anyone has an example of how to do this, I would re...
2011 Jul 29
0
[LLVMdev] Accessing Dominator Tree
...at you consider to be > "outside the existing LLVM framework." I'm hoping your only objection > is to using the opt tool to run LLVM passes. > > -- John T. > > I have tried several things all along the lines of: > > DominatorTree DT; > > DT.getBase().recalculate(F); > > Everything I have tried results in an assertion failure when > trying to access the front() of what I assume is the DominatorTree: > > Assertion failed: !empty() && "Called front() on empty list!" > > If anyone has an exam...
2014 Oct 16
2
[LLVMdev] [RFC] Less memory and greater maintainability for debug info IR
...unsigned Column; >> public: >> static MDLineTable *get(unsigned Line, unsigned Column, >> MDNode *Scope); >> static MDLineTable *getInlined(MDLineTable *Base, MDNode *Scope); >> static MDLineTable *getBase(MDLineTable *Inlined); >> >> unsigned getLine() const { return Line; } >> unsigned getColumn() const { return Column; } >> bool isInlined() const { return getNumOperands() == 2; } >> MDNode *getScope() const { return getOperand(0); }...
2011 Nov 19
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...nfo.cpp (revision 144978) > +++ lib/Analysis/ScopInfo.cpp (working copy) > @@ -311,29 +311,38 @@ > Type = Access.isRead() ? Read : Write; > statement = Statement; > > - isl_pw_aff *Affine = SCEVAffinator::getPwAff(Statement, Access.getOffset()); > BaseAddr = Access.getBase(); > > - setBaseName(); > + if (Access.isAffine()) { > > - // Devide the access function by the size of the elements in the array. > - // > - // A stride one array access in C expressed as A[i] is expressed in LLVM-IR > - // as something like A[i * elementsize]. This h...
2014 Oct 13
9
[LLVMdev] [RFC] Less memory and greater maintainability for debug info IR
...MDUser { unsigned Line; unsigned Column; public: static MDLineTable *get(unsigned Line, unsigned Column, MDNode *Scope); static MDLineTable *getInlined(MDLineTable *Base, MDNode *Scope); static MDLineTable *getBase(MDLineTable *Inlined); unsigned getLine() const { return Line; } unsigned getColumn() const { return Column; } bool isInlined() const { return getNumOperands() == 2; } MDNode *getScope() const { return getOperand(0); } MDNode *getInlinedAt() const...
2012 Oct 29
0
[LLVMdev] Undefined symbol when calling recalculate method on DominatorTreeBase
...is runtime error: opt: symbol lookup error: /......./llvm/Release+Asserts/lib/InstrLLVM_VM_multi.so: undefined symbol: _ZN4llvm17DominatorTreeBaseINS_10BasicBlockEE5resetEv The error happens when calling the next function: void rebuildDT(DominatorTree* DT, Function *parFunc) { DT->getBase().recalculate(*parFunc); } All the code executes normally until the first call to this function, when the *recalculate* method calls the protected method *reset*. Any ideas on how to solve this problem ? Thanks, Juan -------------- next part -------------- An HTML attachment was scrubbed.....
2014 Oct 15
3
[LLVMdev] [RFC] Less memory and greater maintainability for debug info IR
...public: > >> static MDLineTable *get(unsigned Line, unsigned Column, > >> MDNode *Scope); > >> static MDLineTable *getInlined(MDLineTable *Base, MDNode > >> *Scope); > >> static MDLineTable *getBase(MDLineTable *Inlined); > >> > >> unsigned getLine() const { return Line; } > >> unsigned getColumn() const { return Column; } > >> bool isInlined() const { return getNumOperands() == 2; } > >> MDNode *getScope() co...
2014 Oct 14
2
[LLVMdev] [RFC] Less memory and greater maintainability for debug info IR
...ine; > unsigned Column; > public: > static MDLineTable *get(unsigned Line, unsigned Column, > MDNode *Scope); > static MDLineTable *getInlined(MDLineTable *Base, MDNode *Scope); > static MDLineTable *getBase(MDLineTable *Inlined); > > unsigned getLine() const { return Line; } > unsigned getColumn() const { return Column; } > bool isInlined() const { return getNumOperands() == 2; } > MDNode *getScope() const { return getOperand(0); } >...
2011 Nov 14
1
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...59.000000000 +0100 > +++ ../llvm2/tools/polly/./include/polly/ScopDetection.h 2011-11-13 01:11:17.000000000 +0100 > @@ -145,6 +145,8 @@ > /// @return True if the call instruction is valid, false otherwise. > static bool isValidCallInst(CallInst&CI); > > + const Value *GetBaseValue(const SCEV *S) const; Why is this function needed? For me it looks like it implements the same as SCEVValue *Operand = dyn_cast<SCEVValue>(getPointerOperand()) if (!Operand) return invalid Value; return Operand->getValue(); > /// @brief Check if a memory access can be p...
2011 Nov 18
5
[LLVMdev] How to make Polly ignore some non-affine memory accesses
2011/11/15 Marcello Maggioni <hayarms at gmail.com>: > 2011/11/14 Tobias Grosser <tobias at grosser.es>: >> On 11/14/2011 02:45 PM, Marcello Maggioni wrote: >>> >>> 2011/11/14 Tobias Grosser<tobias at grosser.es>: >>>> >>>> On 11/14/2011 01:24 AM, Marcello Maggioni wrote: >>>>> >>>>> Hi Tobias.
2011 Nov 20
2
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...++ lib/Analysis/ScopInfo.cpp   (working copy) >> @@ -311,29 +311,38 @@ >>    Type = Access.isRead() ? Read : Write; >>    statement = Statement; >> >> -  isl_pw_aff *Affine = SCEVAffinator::getPwAff(Statement, >> Access.getOffset()); >>    BaseAddr = Access.getBase(); >> >> -  setBaseName(); >> +  if (Access.isAffine()) { >> >> -  // Devide the access function by the size of the elements in the array. >> -  // >> -  // A stride one array access in C expressed as A[i] is expressed in >> LLVM-IR >> -  // as...
2009 Apr 24
0
Wine release 1.1.20
...Test enabling and disabling Language Profiles. msctf/tests: Add framework for a TextService for testing. msctf: Correct order of arguments to OnSetFocus sink call. msctf: Release focused DocumentMgr on Deactivate and make sure to do a OnSetFocus Sink. msctf: ITfDocumentMgr::GetBase returns the top if there is only one context pushed. msctf: Correct index for being unable to pop last context. We need to leave one behind. msctf: Add locking flags. msctf: Helper functions for generating DWORD cookies. msctf/tests: Setup test framework for ITfThreadMgrEven...
2011 Nov 14
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...m2/tools/polly/./include/polly/ScopDetection.h        2011-11-13 >> 01:11:17.000000000 +0100 >> @@ -145,6 +145,8 @@ >>    /// @return True if the call instruction is valid, false otherwise. >>    static bool isValidCallInst(CallInst&CI); >> >> +  const Value *GetBaseValue(const SCEV *S)  const; > > Why is this function needed? For me it looks like it implements > the same as > > SCEVValue *Operand = dyn_cast<SCEVValue>(getPointerOperand()) > > if (!Operand) >  return invalid Value; > > return Operand->getValue(); Mmm, abo...
2011 Nov 02
5
[LLVMdev] How to make Polly ignore some non-affine memory accesses
Mmm I found out a very strange behavior (to me) of the SCEV analysis of the loop bound of the external loop I posted. When in ScopDetection it gets the SCEV of the external loop bound in the "isValidLoop()" function with: const SCEV *LoopCount = SE->getBackedgeTakenCount(L); It returns a SCEVCouldNotCompute, but if I change the "if" block inside the loop from: if
2020 Feb 16
0
Wine release 5.2
...urn value on all paths in wcstombs_s_l. include: Add some E_* defines. crypt32: Implement CryptBinaryToStringW(HEXRAW). tzres: Add Haiti Time Zone. Derek Lesho (5): mfplat: Make functionality of GetMediaTypeHandler more clear. msctf: Always provide a context when from GetBase/Top. mfplat: Implement IMFByteStream::GetLength() for file streams. mfplat: Implement IMFByteStream::SetCurrentPosition() for file streams. mfplat/tests: Add more comprehensive media source tests. Dirk Niggemann (1): krnl386.exe: Make CallProcEx32W16 clear CPEX_DEST_CDECL f...
2009 Feb 13
0
Wine release 1.1.15
...nly 1 ITfThreadMgr is created per thread. include: Add beginning textstor.idl. msctf: Implement stub ITfContext. msctf: Implement ITfDocumentMgr::Push. msctf: Implement ITfDocumentMgr::Pop. msctf: Implement ITfDocumentMgr::GetTop. msctf: Implement ITfDocumentMgr::GetBase. msctf: Add definition of ITfSource interface. msctf: Add ITfSource interface to Context. msctf: Add ITfSource interface to ThreadMgr. msctf: Add ITfSource interface to DocumentMgr. advapi32: Add Security Label sids used by IE7. msctf: Add stub implementation of...