search for: operandtrait

Displaying 12 results from an estimated 12 matches for "operandtrait".

Did you mean: operandtraits
2018 Aug 31
2
Extending StoreInst/LoadInst
...: 1) 'metadata as value': this is supported for arguments (like in a call), but, as far as I see, not directly for generic metadata. Not sure how easy it is to add to StoreInst/LoadInst. 2) add an extra 'Value*' member to StoreInst and LoadInst (without changing the operands and the OperandTraits) 3) treat the side channel as (optional) operand 1 for load, and (optional) operand 2 for store. This involves changing the 'operator new' to always allocate for 2(load)/3(store) operands. Also OperandTraits of StoreInst must be modfied as we now have an optional operand. For the LoadIn...
2008 Apr 30
2
[LLVMdev] [PATCH] use-diet for review
Mike, Holger, thanks for the tips, but being a long-time subversion user, I already knew this all :-) The problem was that I did an SVN merge from branch to trunk, and I ended up with: ... M include/llvm/User.h A + include/llvm/OperandTraits.h M include/llvm/Instruction.h ... The little "+" after the "A" means, the file got copied unchanged, and I think this is the reason why it got excluded from "svn diff". Anyway, the files can also be inspected by "svn cat http://llvm.org/svn/llvm-project/l...
2008 Apr 29
3
[LLVMdev] [PATCH] use-diet for review
Chris Lattner wrote: > Hi Gabor, I don't see OperandTraits.h. Sorry, I relied "svn diff" to include freshly added files. Apparently it did not :-/ Here are they. I pondered of putting all in Use.cpp into Value.cpp, but I am not so sure. Cheers, Gabor -------------- next part -------------- A non-text attachment was scrubbed... Name: Opera...
2008 Apr 29
5
[LLVMdev] [PATCH] use-diet for review
Hi all, I have reported more than enough about the space savings achieved and the associated costs, here comes the current patch for review. Since this one is substantially smaller than the previous one, I did not cut it in pieces. The front part is about headers and the rest the .cpp and other files. Cheers, Gabor -------------- next part -------------- An embedded and charset-unspecified
2008 Apr 29
0
[LLVMdev] [PATCH] use-diet for review
...ry brief peek at this patch, but I have a few questions already. Is there a header missing? I don't see DECLARE_TRANSPARENT_OPERAND_ACCESSORS defined anywhere. Also, what affect does this macro have on doxygen? In User.h: +public: + template <unsigned Idx> Use &Op() { + return OperandTraits<User>::op_begin(this)[Idx]; + } + template <unsigned Idx> const Use &Op() const { + return OperandTraits<User>::op_begin(const_cast<User*>(this))[Idx]; + } + Use *allocHungoffUses(unsigned) const; + void dropHungoffUses(Use *U) { + if (OperandList == U) { +...
2008 Apr 29
0
[LLVMdev] [PATCH] use-diet for review
...nsertBefore); + return new(2) GetElementPtrInst(Ptr, Idx, Name, InsertBefore); } What is the magic "2"? +GetElementPtrInst::GetElementPtrInst(const GetElementPtrInst &GEPI) + : Instruction(reinterpret_cast<const Type*>(GEPI.getType()), GetElementPtr, + OperandTraits<GetElementPtrInst>::op_end(this) - GEPI.getNumOperands(), + GEPI.getNumOperands()) { + Use *OL = OperandList; + Use *GEPIOL = GEPI.OperandList; + for (unsigned i = 0, E = NumOperands; i != E; ++i) + OL[i].init(GEPIOL[i], this); +} Please just move methods like this out...
2008 Apr 30
0
[LLVMdev] [PATCH] use-diet for review
On Apr 29, 2008, at 9:40 AM, Gabor Greif wrote: > Sorry, I relied "svn diff" to include freshly added files. svn add file svn diff . will show it.
2011 Feb 09
2
[LLVMdev] Building LLVM on Cygwin.
...DT/ CallingConv.h GlobalValue.h IntrinsicsARM.td Metadata.h SymbolTableListTraits.h AbstractTypeUser.h CodeGen/ GlobalVariable.h IntrinsicsAlpha.td Module.h System/ Analysis/ CompilerDriver/ InlineAsm.h IntrinsicsCellSPU.td OperandTraits.h Target/ Argument.h Config/ InstrTypes.h IntrinsicsPowerPC.td Operator.h Transforms/ Assembly/ Constant.h Instruction.def IntrinsicsX86.td Pass.h Type.h Attributes.h Constants.h Instruction.h IntrinsicsXCor...
2014 Mar 07
3
[LLVMdev] [RFC] Add second "failure" AtomicOrdering to cmpxchg instruction
...Ordering SuccessOrdering, + AtomicOrdering FailureOrdering, SynchronizationScope SynchScope, Instruction *InsertBefore) : Instruction(Cmp->getType(), AtomicCmpXchg, OperandTraits<AtomicCmpXchgInst>::op_begin(this), OperandTraits<AtomicCmpXchgInst>::operands(this), InsertBefore) { - Init(Ptr, Cmp, NewVal, Ordering, SynchScope); + Init(Ptr, Cmp, NewVal, SuccessOrdering, FailureOrdering, SynchScope); } AtomicCmpXchgInst::Ato...
2010 Oct 01
2
[LLVMdev] CMake "sudo make install" & headers
...-- Installing: /usr/local/llvm-2.8/include/llvm/MC/MachObjectWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/SectionKind.h -- Installing: /usr/local/llvm-2.8/include/llvm/Metadata.h -- Installing: /usr/local/llvm-2.8/include/llvm/Module.h -- Installing: /usr/local/llvm-2.8/include/llvm/OperandTraits.h -- Installing: /usr/local/llvm-2.8/include/llvm/Operator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Pass.h -- Installing: /usr/local/llvm-2.8/include/llvm/PassAnalysisSupport.h -- Installing: /usr/local/llvm-2.8/include/llvm/PassManager.h -- Installing: /usr/local/llvm-2.8/include/llvm/Pa...
2010 Oct 01
0
[LLVMdev] CMake "sudo make install" & headers
On Thu, Sep 30, 2010 at 3:08 PM, Samuel Williams <space.ship.traveller at gmail.com> wrote: > Hi, > > I might just be doing something stupid, but when I do > > $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. > $ sudo make install > > I don't get the expected headers in >        /usr/local/llvm-2.8/include/llvm > > It is
2010 Sep 30
6
[LLVMdev] CMake "sudo make install" & headers
Hi, I might just be doing something stupid, but when I do $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. $ sudo make install I don't get the expected headers in /usr/local/llvm-2.8/include/llvm It is simply an empty directory. What am I doing wrong? This is on Mac OS X, CMake 2.8+ Kind regards, Samuel