search for: smallvectorimpl

Displaying 20 results from an estimated 233 matches for "smallvectorimpl".

2012 Jan 20
1
[LLVMdev] Public SmallVectorImpl constructor?
...he same thought but never got around to trying to implement it. Does everything compile for you if it's protected? If so, then a patch would probably be happily accepted ------------------------------ From: Vane, Edwin Sent: 1/20/2012 7:13 AM To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] Public SmallVectorImpl constructor? Hi all, Just finished debugging a memory clobbering bug resulting from using SmallVectorImpl directly without realizing this is a bad idea (aside: I was using it directly because llvm::sys::path::append()’s first argument is a SmallVectorImpl<char>). A note in the docs ab...
2013 Feb 05
2
[LLVMdev] AsmParser for backend
..._HEADER // This should be included into the middle of the declaration of // your subclasses implementation of MCTargetAsmParser. unsigned ComputeAvailableFeatures(uint64_t FeatureBits) const; void convertToMCInst(unsigned Kind, MCInst &Inst, unsigned Opcode, const SmallVectorImpl<MCParsedAsmOperand*> &Operands); void convertToMapAndConstraints(unsigned Kind, const SmallVectorImpl<MCParsedAsmOperand*> &Operands); bool mnemonicIsValid(StringRef Mnemonic); unsigned MatchInstructionImpl( const Small...
2019 May 03
3
ArrayRef vs SmallVectorImpl
It is suggested in the documentation that if you would have declared a function parameter as SmallVector<Foo,N>&, it is better to instead declare it as SmallVectorImpl<Foo>&. This makes sense, but it seems to me that it is better still to declare it as ArrayRef<Foo>; a quick test suggests it compiles to the same (highly efficient) code, and adds a bit more flexibility in case e.g. you someday want to pass a std::vector. By that logic, there is n...
2011 Mar 24
0
[LLVMdev] mblaze backend: unreachable executed
...andled type i32 UNREACHABLE executed at CallingConvLower.cpp:162! 0 llc 0x0000000100a1e115 PrintStackTrace(void*) + 38 1 llc 0x0000000100a1e6d0 SignalHandler(int) + 254 2 libSystem.B.dylib 0x00007fff82adf67a _sigtramp + 26 3 llc 0x000000010053233c llvm::SmallVectorImpl<unsigned int>::push_back(unsigned int const&) + 104 4 llc 0x000000010002d3d3 raise + 27 5 llc 0x000000010002d3e3 abort + 14 6 llc 0x0000000100a0a9e3 llvm::report_fatal_error(llvm::Twine const&) + 0 7 llc 0x00000001005df5f3 ll...
2011 Mar 24
2
[LLVMdev] mblaze backend: unreachable executed
Hi Josef, > Okay, I've done a lot more testing and I now have a .bc file that compiles for x86, sparc, mips but refuses to compile for the mblaze and powerPC backends because of the calling convention. Is there anyone that would know how to fix the microblaze calling convention or point me in the right direction on how to fix it? what does "refuses to compile" mean? I.e. what
2013 Feb 05
0
[LLVMdev] AsmParser for backend
...ould be included into the middle of the declaration of > // your subclasses implementation of MCTargetAsmParser. > unsigned ComputeAvailableFeatures(uint64_t FeatureBits) const; > void convertToMCInst(unsigned Kind, MCInst &Inst, unsigned Opcode, > const SmallVectorImpl<MCParsedAsmOperand*> &Operands); > void convertToMapAndConstraints(unsigned Kind, > const > SmallVectorImpl<MCParsedAsmOperand*> &Operands); > bool mnemonicIsValid(StringRef Mnemonic); > unsigned MatchInstructionImpl( >...
2012 Jan 20
0
[LLVMdev] Public SmallVectorImpl constructor?
Hi all, Just finished debugging a memory clobbering bug resulting from using SmallVectorImpl directly without realizing this is a bad idea (aside: I was using it directly because llvm::sys::path::append()'s first argument is a SmallVectorImpl<char>). A note in the docs about not using SmallVectorImpl directly would be nice but could we go further and make SmallVectorImpl's co...
2011 Mar 15
3
[LLVMdev] mblaze backend: unreachable executed
...m.B.dylib 000000000000000000 _sigtramp + 2102528416 4 llc 0x0000000100936aa6 abort + 22 5 llc 0x000000010091551d llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) + 381 6 llc 0x000000010058100e llvm::CCState::AnalyzeCallResult(llvm::SmallVectorImpl<llvm::ISD::InputArg> const&, bool (*)(unsigned int, llvm::EVT, llvm::EVT, llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::CCState&)) + 158 7 llc 0x000000010007319c llvm::TraxTargetLowering::LowerCallResult(llvm::SDValue, llvm::SDValue, llvm::CallingConv::ID, bo...
2011 Nov 01
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...+ 196 14 LLVMPolly.dylib 0x000000010685d519 polly::ScopStmt::buildDomain(polly::TempScop&, llvm::Region const&) const + 169 15 LLVMPolly.dylib 0x000000010685d90d polly::ScopStmt::ScopStmt(polly::Scop&, polly::TempScop&, llvm::Region const&, llvm::BasicBlock&, llvm::SmallVectorImpl<llvm::Loop*>&, llvm::SmallVectorImpl<unsigned int>&) + 861 16 LLVMPolly.dylib 0x000000010685d59d polly::ScopStmt::ScopStmt(polly::Scop&, polly::TempScop&, llvm::Region const&, llvm::BasicBlock&, llvm::SmallVectorImpl<llvm::Loop*>&, llvm::SmallVecto...
2011 Jan 21
1
[LLVMdev] why dummy asserting base/interface class virtual methods instead of pure virtual methods?
LLVM code base seems to be full of base/interface classes, which have methods like virtual SDValue LowerCall(SDValue Chain, SDValue Callee, CallingConv::ID CallConv, bool isVarArg, bool &isTailCall, const SmallVectorImpl<ISD::OutputArg> &Outs, const SmallVectorImpl<SDValue> &OutVals, const SmallVectorImpl<ISD::InputArg> &Ins, DebugLoc dl, SelectionDAG &DAG, SmallVectorImpl<SDValue> &InVals) const { assert(0...
2011 Mar 24
0
[LLVMdev] mblaze backend: unreachable executed
...andled type i32 UNREACHABLE executed at CallingConvLower.cpp:162! 0 llc 0x0000000100a1e115 PrintStackTrace(void*) + 38 1 llc 0x0000000100a1e6d0 SignalHandler(int) + 254 2 libSystem.B.dylib 0x00007fff82adf67a _sigtramp + 26 3 llc 0x000000010053233c llvm::SmallVectorImpl<unsigned int>::push_back(unsigned int const&) + 104 4 llc 0x000000010002d3d3 raise + 27 5 llc 0x000000010002d3e3 abort + 14 6 llc 0x0000000100a0a9e3 llvm::report_fatal_error(llvm::Twine const&) + 0 7 llc 0x00000001005df5f3 ll...
2011 Oct 27
2
[LLVMdev] How to make Polly ignore some non-affine memory accesses
Perfect, thank you very much :) 2011/10/26 Tobias Grosser <tobias at grosser.es>: > On 10/24/2011 11:32 PM, Marcello Maggioni wrote: >> >> Strange , with --enable-shared (I use auto tool by the way ...) it gives: >> >> MacBook-Pro-di-Marcello:examples Kariddi$ ./compile_ex.sh >> not_so_simple_loop >> clang (LLVM option parsing): Unknown command line
2015 Mar 09
2
[LLVMdev] LLVM 3.6: problems building on Windows using MSVC 2013
..., _Ty=clang::driver::Job , _InIt=const std::unique_ptr<clang::driver::Job,std::default_delete<clang::driver::Job>> * ] ..\src\plugins\thirdParty\LLVM\include\llvm/ADT/SmallVector.h(761) : while compiling class template member function 'llvm::SmallVectorImpl<T> &llvm::SmallVectorImpl<T>::operator =(const llvm::SmallVectorImpl<T> &)' with [ T=std::unique_ptr<clang::driver::Job,std::default_delete<clang::driver::Job> > ] ..\src\plugins\thirdParty\LLVM\include\llvm/ADT/SmallV...
2015 Mar 09
2
[LLVMdev] LLVM 3.6: problems building on Windows using MSVC 2013
..., _Ty=clang::driver::Job , _InIt=const std::unique_ptr<clang::driver::Job,std::default_delete<clang::driver::Job>> * ] ..\src\plugins\thirdParty\LLVM\include\llvm/ADT/SmallVector.h(761) : while compiling class template member function 'llvm::SmallVectorImpl<T> &llvm::SmallVectorImpl<T>::operator =(const llvm::SmallVectorImpl<T> &)' with [ T=std::unique_ptr<clang::driver::Job,std::default_delete<clang::driver::Job>> ] ..\src\plugins\thirdParty\LLVM\include\llvm/A...
2011 Mar 15
0
[LLVMdev] mblaze backend: unreachable executed
...6 > 4 llc 0x0000000100936aa6 abort + 22 > 5 llc 0x000000010091551d > llvm::llvm_unreachable_internal(char const*, char const*, unsigned > int) + 381 > 6 llc 0x000000010058100e > llvm > ::CCState > ::AnalyzeCallResult(llvm::SmallVectorImpl<llvm::ISD::InputArg> > const&, bool (*)(unsigned int, llvm::EVT, llvm::EVT, > llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::CCState&)) > + 158 > 7 llc 0x000000010007319c > llvm::TraxTargetLowering::LowerCallResult(llvm::SDValue, >...
2012 Dec 16
2
[LLVMdev] write module to .bc file
...9;t find one missing step in the process: static void WriteModule ( const Module * M, BitstreamWriter & Stream ) http://llvm.org/docs/doxygen/html/BitcodeWriter_8cpp.html#a828cec7a8fed9d232556420efef7ae89 to write that module, first i need a BistreamWriter BitstreamWriter::BitstreamWriter (SmallVectorImpl< char > &O) http://llvm.org/docs/doxygen/html/classllvm_1_1BitstreamWriter.html and for a BitstreamWriter i need a SmallVectorImpl. But, what next? Should i write the content of the SmallVectorImpl byte by byte on a file handler myself? is there a llvm api for this? do i need something e...
2008 Aug 28
5
[LLVMdev] is the SmallVector implementation standard c++?
While debugging a bootstrap problem, I noticed that SmallVector stores one element in SmallVectorImpl and N - 1 in SmallVector. It also assumes that all elements are continuous in memory. Does C++ makes any guaranties about the relative memory position of a base and parent classes? I haven't studied it a lot, maybe we can keep N elements in SmallVector and pass the pointer to SmallVectorImpl c...
2019 May 10
2
[Pipeliner] MachinePipeliner TargetInstrInfo hooks need more information?
...y the signatures look like this: bool analyzeLoop(MachineLoop &L, MachineInstr *&IndVarInst, MachineInstr *&CmpInst) unsigned TargetInstrInfo::reduceLoopCount(MachineBasicBlock &MBB, MachineInstr *IndVar, MachineInstr &Cmp, SmallVectorImpl<MachineOperand> &Cond, SmallVectorImpl<MachineInstr *> &PrevInsts, unsigned Iter, unsigned MaxIter) const Since the condition operands for branching in our architecture are found on the branch instruction and not the comparison instruction, we weren...
2011 Jan 21
2
[LLVMdev] [LLVMDev] Reg Alloc: Spiller::Spill question
Spiller::Spill( LiveInterval *li, SmallVectorImpl<LiveInterval*> &newIntervals, const SmallVectorImpl<LiveInterval*> &spillIs ); has two reference vectors which contain a small list of Live Intervals. What is the register allocator's job to do with these intervals other than analysis. What more ne...
2016 Apr 19
2
llvm::sys::path::home_directory() implementation for unix
I recently was using llvm code from a process that I manually spawned as a child process and noticed that llvm::sys::path::home_directory() only works if "HOME" is set in the process environment: bool home_directory(SmallVectorImpl<char> &result) { if (char *RequestedDir = getenv("HOME")) { result.clear(); result.append(RequestedDir, RequestedDir + strlen(RequestedDir)); return true; } return false; } This is in lib/Support/Unix/Path.inc. Do we want to try a little bit harder? Maybe som...