search for: stlextras

Displaying 20 results from an estimated 91 matches for "stlextras".

2002 Oct 27
0
[LLVMdev] STLExtras.h is not standalone
Issue: STLExtras.h includes a class mapped_iterator that uses std::iterator_traits<> without including <iterator>. Fix: have STLExtras.h include Support/iterator. -- Casey Carter Casey at Carter.net ccarter at uiuc.edu AIM: cartec69 -------------- next part -------------- An embedded and charset-uns...
2014 Jun 30
3
[LLVMdev] LLD dynamic compilation
.../InputGraphTest.cpp:197 #1 llvm::function_ref<void(lld::File*)>::callback_fn<InputGraphTest_Observer_Test::TestBody()::<lambda(lld::File*)> >(intptr_t, lld::File *) (callable=140737488346688, param1=<optimized out>) at /home/rengolin/devel/llvm/src/llvm/include/llvm/ADT/STLExtras.h:117 #2 0x00000000005b3ec4 in operator() (param1=<optimized out>, this=0xa1e2a0) at /home/rengolin/devel/llvm/src/llvm/include/llvm/ADT/STLExtras.h:126 #3 callback_fn<llvm::function_ref<void(lld::File*)> > (param1=<optimized out>, callable=10609312) at /home/rengolin/deve...
2010 Dec 14
1
[LLVMdev] qsort callbacks portability issues
Hi, there are a couple of possible issues around array_pod_sort from STLExtras.h . Firstly, qsort() needs a comparator that returns zero on equal inputs. ConstantIntSortPredicate in SimplifyCFG.cpp (where the sort is being used to bring duplicate values together) fails this requirement. All the others look ok. Secondly, on Windows qsort() needs its callback to use __cdecl...
2005 Sep 22
3
[LLVMdev] name collision - llvm::tie and boost::tie
The BGL (Boost Graph Library) defines tie(), which is exactly what the tie() defined in STLExtras.h. The header files of GBL use boost::tie(), and other boost libraries use boost::tie() too. How to resolve the ambiguity for compiler? -- Tzu-Chien Chiu, 3D Graphics Hardware Architect <URL:http://www.csie.nctu.edu.tw/~jwchiu>
2019 Jan 12
2
LLVM header files for Kaleidoscope tutorial
I'm going through the Kaleidoscope tutorial, adding the codegen() functions: https://llvm.org/docs/tutorial/LangImpl03.html. I cannot find any discussion of header files to include, (other than the include of llvm/ADT/STLExtras.h in the lexer/parser code), and the compilation is failing due to several undefined symbols: LogErrorV, Value, LLVMContext, APFloat, and others. I've been hunting down the header files for each symbol, but I must be missing something. What am I doing wrong? Jack Orenstein -------------- next...
2014 Jun 30
2
[LLVMdev] LLD dynamic compilation
Folks, I'm having a look at LLD and I need some guidance... I know it's not production ready for x86 and ARM (the idea is to make it so). My steps: I've added it to tools/lld and ran CMake again (on x86_64) on a standard release build (static linking). It works, builds but I see one unit test error: Note: Google Test filter = InputGraphTest.Observer [==========] Running 1 test from
2018 May 11
2
About Error: Interpreter has not been linked in
...ot;*Interpreter has not been linked in.*" error and EngineBuilder returns NULL. Here is the line I use to create execution engine: auto executionEngine = llvm::EngineBuilder(std::move(m_module)).setErrorStr(&error).create(); Here are all headers I have included: #include "llvm/ADT/STLExtras.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/GenericValue.h" #include "llvm/IR/Argument.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DerivedTypes.h" #includ...
2017 May 24
3
GraphTraits dereferencing
Hello, I’m trying to port a project up to 4.0 and I’m seeing the following error: In file included from /Users/jaredcarlson/Projects/llvm-4.0.0.src/include/llvm/ADT/StringRef.h:13: /Users/jaredcarlson/Projects/llvm-4.0.0.src/include/llvm/ADT/STLExtras.h:139:13: error: no type named 'type' in 'std::__1::result_of<std::__1::pointer_to_unary_function<llvm::DSNode *, llvm::DSNode &> (llvm::DSNode &)>' ::type value_type; ~~^~~~ /Users/jaredcarlson/Projects/crab-llvm/dsa-seahorn/include/dsa...
2012 Mar 23
0
[LLVMdev] Sorting relocation entries
Hi Jim, Thanks for reviewing the patch. I couldn't get rid of STLExtras.h, but other than that, I followed all the suggestions in your email. Please let me know if you notice anything else that needs fixing. On Thu, Mar 22, 2012 at 4:42 PM, Jim Grosbach <grosbach at apple.com> wrote: > Hi Akira, > > This is looking good. Some specific comments on the de...
2012 Mar 23
1
[LLVMdev] Sorting relocation entries
...nce we're always passing in a non-NULL fixup, that should probably be a reference, not a pointer. Good for commit with those tweaks. Thanks! -Jim On Mar 23, 2012, at 1:07 PM, Akira Hatanaka wrote: > Hi Jim, > > Thanks for reviewing the patch. > > I couldn't get rid of STLExtras.h, but other than that, I followed all > the suggestions in your email. > Please let me know if you notice anything else that needs fixing. > > On Thu, Mar 22, 2012 at 4:42 PM, Jim Grosbach <grosbach at apple.com> wrote: >> Hi Akira, >> >> This is looking good....
2012 Mar 22
2
[LLVMdev] Sorting relocation entries
...ctTargetWriter.cpp > index 15bf476..4f3e3b2 100644 > --- a/lib/MC/MCELFObjectTargetWriter.cpp > +++ b/lib/MC/MCELFObjectTargetWriter.cpp > @@ -7,6 +7,7 @@ > // > //===----------------------------------------------------------------------===// > > +#include "llvm/ADT/STLExtras.h" Since we're moving the sort here from ELFObjectWriter.cpp, it may be possible to remove the STLExtras.h include from the latter. Please check and see. > #include "llvm/MC/MCELFObjectWriter.h" > > using namespace llvm; > @@ -36,3 +37,10 @@ const MCSymbol *MCEL...
2002 Oct 27
0
[LLVMdev] Followup on Casey's patches
In case others are interested in what happened with Casey's patches, here's the digest: > Issue: STLExtras.h includes a class mapped_iterator that uses > std::iterator_traits<> without including <iterator>. > Fix: have STLExtras.h include Support/iterator. Applied. > DSGraph.h has a prototype in it with a std::string& parameter, but does > not include <string>. Appli...
2004 Oct 12
2
[LLVMdev] GenRegisterInfo.h.inc
Hi all, I cannot figure out why is named GenRegisterInfo.h.inc and not GenRegisterInfo.inc ... Is it for a dependency problem? Back again to compilation problems under win32 with VC llvm\lib\Analysis\DataStructure\Local.cpp(628) : error C2105: '--' needs l-value the line is: Result.mergeWith(getValueDest(**--CS.arg_end())); Can I submit patches for mutate it in something like:
2004 Oct 12
0
[LLVMdev] GenRegisterInfo.h.inc
...g_end(); > --ii; > Result.mergeWith(getValueDest(**ii)); > > There're several of this in Local.cpp, and this is the only file affected. Yes, please submit a patch (you can send this one directly to me to avoid the list traffic). For this one, please #include "llvm/ADT/STLExtras.h" and turn it into: Result.mergeWith(getValueDest(**prior(CS.arg_end()))); Thanks! -Chris -- http://llvm.org/ http://nondot.org/sabre/
2017 May 27
3
Should we split llvm Support and ADT?
...ent based > invalidation scheme - addressing this one particularly critical point in > LLVM's build seems like it could be worth such a workaround. (this would > speed up the build for even the times when tablegen's real dependencies > change - add a new function to ArrayRef, or STLExtras, etc... and tablegen > runs, but it doesn't cascade to everything else). > > (plus, opt build of tablegen, so that conclusion can be reached more > quickly) > > As Hal also mentioned, I'd be OK with this if there's a good logical > division that can be taken more th...
2016 Dec 14
0
Openness to a "zip_iterator" type?
...is a tuple that contains a reference to each value > } > > > If I were to implement this IteratorZip type for the LLVM codebase, would this be something the community would be interested in/accept/use? Am I missing an obvious existing implementation somewhere? Yes: include/llvm/ADT/STLExtras.h has zip. See also unittests/ADT/IteratorTest.cpp. — Mehdi
2012 Aug 25
3
[LLVMdev] [llvm-commits] [PATCH] Refactoring the DFA generator
...in states. Each state keeps a set of transitions. - Each transition contains the input to match in order to take it and the destination state 'To'. - Factoring up redundant information. Transitions doesn't contains 'From' state anymore because they are folded into it. - Using STLExtras functions. - Removed old and unused API's (e.g. addTransition in DFA) The new patch is attached but if you prefer (2) I can remake it. I failed to use SmallSet to store the transitions in State because I needed to iterate on it. What kind of llvm structure may I use? Ivan > > -Anshu...
2017 May 27
6
Should we split llvm Support and ADT?
...HashString.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/IndexedMap.h" #include "llvm/ADT/IntEqClasses.h" #include "llvm/ADT/MapVector.h" #include "llvm/ADT/Optional.h" #include "llvm/ADT/PointerUnion.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SparseBitVector.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/String...
2004 Nov 19
1
[LLVMdev] Loop unroll : approximate loop size for loops with debug info?
...Unroll.cpp --- lib/Transforms/Scalar/LoopUnroll.cpp 18 Oct 2004 14:38:48 -0000 1.13 +++ lib/Transforms/Scalar/LoopUnroll.cpp 19 Nov 2004 04:17:08 -0000 @@ -28,6 +28,7 @@ #include "llvm/Support/Debug.h" #include "llvm/ADT/Statistic.h" #include "llvm/ADT/STLExtras.h" +#include "llvm/IntrinsicInst.h" #include <cstdio> #include <set> #include <algorithm> @@ -86,6 +87,11 @@ // Ignore PHI nodes in the header. } else if (I->hasOneUse() && I->use_back() == Term) { // Ignore instructions onl...
2017 May 27
4
Should we split llvm Support and ADT?
...quot; >> #include "llvm/ADT/IndexedMap.h" >> #include "llvm/ADT/IntEqClasses.h" >> #include "llvm/ADT/MapVector.h" >> #include "llvm/ADT/Optional.h" >> #include "llvm/ADT/PointerUnion.h" >> #include "llvm/ADT/STLExtras.h" >> #include "llvm/ADT/SetVector.h" >> #include "llvm/ADT/SmallPtrSet.h" >> #include "llvm/ADT/SmallSet.h" >> #include "llvm/ADT/SmallVector.h" >> #include "llvm/ADT/SparseBitVector.h" >> #include "llv...