search for: instrtype

Displaying 20 results from an estimated 59 matches for "instrtype".

2013 Nov 26
2
[LLVMdev] LLVM compilation problem
...-prefix=$HOME/local/$MACHTYPE ... % gmake ENABLE_OPTIMIZED=0 ... llvm/include/llvm/IR/Instruction.h:49: error: call of overloaded `cast(llvm::User*)' is ambiguous llvm/include/llvm/IR/Instruction.h:50: error: call of overloaded `cast(const llvm::User*)' is ambiguous llvm/include/llvm/IR/InstrTypes.h:80: error: call of overloaded `cast(const llvm::Value*&)' is ambiguous llvm/include/llvm/IR/InstrTypes.h:123: error: call of overloaded `cast(const llvm::Value*&)' is ambiguous llvm/include/llvm/IR/InstrTypes.h:366: error: call of overloaded `cast(const llvm::Value*&)'...
2010 Feb 12
2
[LLVMdev] [PATCH] Fix off-by-one errors in the doxygen documentation
Some doxygen annotations are attached to the wrong entry, which can be misleading. This patch fixes the mistake everywhere I could find it. --- include/llvm/InstrTypes.h | 54 ++++++++++++++++++++-------------------- include/llvm/MC/MCDirectives.h | 42 +++++++++++++++--------------- include/llvm/Pass.h | 10 +++--- 3 files changed, 53 insertions(+), 53 deletions(-) diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h index 5...
2017 Jun 04
2
need more information about the two classes of CallInst and CastInst
Hello, everyone. I want to know more about the classes of CallInst and CastInst, but i can just find some information of them in the InstrTypes.h file. Can you offer me more materials about the two important classes? If there are some cases, that is better. Thank you! 2017/6/4 Jay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170604/c08cb5a9/at...
2015 Jan 17
2
[LLVMdev] How to test isDereferenceablePointer?
...gt; --- lib/IR/Value.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp index 5f7e258..aa701d5 100644 --- a/lib/IR/Value.cpp +++ b/lib/IR/Value.cpp @@ -23,8 +23,10 @@ #include "llvm/IR/GetElementPtrTypeIterator.h" #include "llvm/IR/InstrTypes.h" #include "llvm/IR/Instructions.h" +#include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/Module.h" #include "llvm/IR/Operator.h" +#include "llvm/IR/Statepoint.h" #include "llvm/IR/ValueHandle.h" #include "llvm/IR/ValueSym...
2015 Jan 20
2
[LLVMdev] How to test isDereferenceablePointer?
...(+) >> >> diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp >> index 5f7e258..aa701d5 100644 >> --- a/lib/IR/Value.cpp >> +++ b/lib/IR/Value.cpp >> @@ -23,8 +23,10 @@ >> #include "llvm/IR/GetElementPtrTypeIterator.h" >> #include "llvm/IR/InstrTypes.h" >> #include "llvm/IR/Instructions.h" >> +#include "llvm/IR/IntrinsicInst.h" >> #include "llvm/IR/Module.h" >> #include "llvm/IR/Operator.h" >> +#include "llvm/IR/Statepoint.h" >> #include "llvm/IR/Va...
2018 Aug 13
0
[PATCH v2 02/11] x86/paravirt: remove clobbers parameter from paravirt patch functions
...b/arch/x86/kernel/alternative.c @@ -594,7 +594,7 @@ void __init_or_module apply_paravirt(struct paravirt_patch_site *start, BUG_ON(p->len > MAX_PATCH_LEN); /* prep the buffer with the original instructions */ memcpy(insnbuf, p->instr, p->len); - used = pv_init_ops.patch(p->instrtype, p->clobbers, insnbuf, + used = pv_init_ops.patch(p->instrtype, insnbuf, (unsigned long)p->instr, p->len); BUG_ON(used > p->len); diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index ce560b916b1f..f0c462fe2808 100644 --- a/arch/x86/kernel/paravir...
2014 Jun 25
2
[LLVMdev] Question Regarding Sign-Overflow
...t;https://cs.corp.google.com/#piper///depot/google3/third_party/llvm/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp&ct=xref_jump_to_def&cl=GROK&l=1456&gsn=Op1>)) { BinaryOperator <https://cs.corp.google.com/#piper///depot/google3/third_party/llvm/llvm/include/llvm/IR/InstrTypes.h&ct=xref_jump_to_def&cl=GROK&l=138&gsn=BinaryOperator> * <https://cs.corp.google.com/#piper///depot/google3/GENERATED/figments/cpp/PointerTo/start-with-ll/llvm/class-BinaryOperator.cc&ct=xref_jump_to_def&cl=GROK&l=3&gsn=*>Res <https://cs.corp.google.com...
2014 Jan 07
2
[LLVMdev] Build/Install of LLVM without root access
I must not be asking clearly. I have a machine on which I have placed the tarballs - but no internet access. How do I use the *src.tar.gz files from the llvm 3.4 downloads page? I understand the layout produced by the svn actions, but if I have just the tarballs, do I simply replace "svn co" with "tar -xvzf" in the sequence? How do the names of the tarballs map to the names
2007 Apr 18
1
[PATCH] Fix 'arch/i386/kernel/paravirt.c:481: warning: initialization from incompatible pointer type'
Fix paravirt_probe() macro so that handing it start_kernel doesn't evoke a warning (start_kernel is asmlinkage). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/dontdiff --minimal linux-2.6.19-rc4-mm2/include/asm-i386/paravirt.h working-2.6.19-rc4-mm2-warnings/include/asm-i386/paravirt.h ---
2007 Apr 18
1
[PATCH] Fix 'arch/i386/kernel/paravirt.c:481: warning: initialization from incompatible pointer type'
Fix paravirt_probe() macro so that handing it start_kernel doesn't evoke a warning (start_kernel is asmlinkage). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/dontdiff --minimal linux-2.6.19-rc4-mm2/include/asm-i386/paravirt.h working-2.6.19-rc4-mm2-warnings/include/asm-i386/paravirt.h ---
2018 Aug 13
0
[PATCH v2 03/11] x86/paravirt: remove clobbers from struct paravirt_patch_site
...h/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h index f6e24e78633b..b900088cd244 100644 --- a/arch/x86/include/asm/paravirt_types.h +++ b/arch/x86/include/asm/paravirt_types.h @@ -678,7 +678,6 @@ struct paravirt_patch_site { u8 *instr; /* original instructions */ u8 instrtype; /* type of this instruction */ u8 len; /* length of original instruction */ - u16 clobbers; /* what registers you may clobber */ }; extern struct paravirt_patch_site __parainstructions[], -- 2.13.7
2017 Oct 04
0
[PATCH 08/13] x86/paravirt: Clean up paravirt_types.h
...emory", "cc" extra_clbr); \ }) @@ -671,7 +675,7 @@ u64 _paravirt_ident_64(u64); /* These all sit in the .parainstructions section to tell us what to patch. */ struct paravirt_patch_site { - u8 *instr; /* original instructions */ + u8 *instr; /* original instructions */ u8 instrtype; /* type of this instruction */ u8 len; /* length of original instruction */ u16 clobbers; /* what registers you may clobber */ -- 2.13.6
2005 Jan 11
2
[LLVMdev] Loop IR insertion
Hi, I am trying to insert a Loop IR into the existed bytecode file. insertion part by C code, char *p[n]; // pointer array for storing the address of strings int i; for(i=0;i<n;i++){ (p[i])[2] = (p[i])[2] ^ 0x27; } My questions are 1. for local variable 'char *p[n]' , it is represented by IR as alloca ...., so could I insert local variable (pointer array) directly as same way
2007 Apr 18
1
[PATCH] (with benchmarks) binary patching of paravirt_ops call sites
...} +#ifdef CONFIG_PARAVIRT +void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end) +{ + unsigned char **noptable = find_nop_table(); + struct paravirt_patch *p; + int diff, i, k; + + for (p = start; p < end; p++) { + unsigned int used; + used = paravirt_ops.patch(p->instrtype, p->instr, p->len); + /* Pad the rest with nops */ + diff = p->len - used; + for (i = used; diff > 0; diff -= k, i += k) { + k = diff; + if (k > ASM_NOP_MAX) + k = ASM_NOP_MAX; + memcpy(p->instr + i, noptable[k], k); + } + } +} +extern struct paravirt_patch __start_pa...
2007 Apr 18
1
[PATCH] (with benchmarks) binary patching of paravirt_ops call sites
...} +#ifdef CONFIG_PARAVIRT +void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end) +{ + unsigned char **noptable = find_nop_table(); + struct paravirt_patch *p; + int diff, i, k; + + for (p = start; p < end; p++) { + unsigned int used; + used = paravirt_ops.patch(p->instrtype, p->instr, p->len); + /* Pad the rest with nops */ + diff = p->len - used; + for (i = used; diff > 0; diff -= k, i += k) { + k = diff; + if (k > ASM_NOP_MAX) + k = ASM_NOP_MAX; + memcpy(p->instr + i, noptable[k], k); + } + } +} +extern struct paravirt_patch __start_pa...
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
...-----------------------------------===// #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/Module.h" #include "llvm/CallingConv.h" #include "llvm/DerivedTypes.h" #include "llvm/InstrTypes.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/BasicBlock.h" #include "llvm/Support/Debug.h" #include "llvm/S...
2011 Feb 09
2
[LLVMdev] Building LLVM on Cygwin.
...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 IntrinsicsXCore.td PassAnalysisSupport.h TypeSymbolTable.h AutoUpgrade.h...
2005 Apr 22
0
[LLVMdev] tabs
I found 179 more *.{c,cpp,h} files with tabs. Unfortunately, the tabs stops used vary so blindly expanding them messes up alignment in many cases :( Index: examples/BFtoLLVM/BFtoLLVM.cpp Index: include/llvm/AbstractTypeUser.h Index: include/llvm/GlobalVariable.h Index: include/llvm/InstrTypes.h Index: include/llvm/IntrinsicInst.h Index: include/llvm/ADT/PostOrderIterator.h Index: include/llvm/Analysis/ConstantsScanner.h Index: include/llvm/Analysis/IntervalIterator.h Index: include/llvm/Analysis/Verifier.h Index: include/llvm/Assembly/Parser.h Index: include/llvm/Assembly/Writer.h Inde...
2011 Sep 16
0
[LLVMdev] How to duplicate a function?
...-----------------------------------===// #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/Module.h" #include "llvm/CallingConv.h" #include "llvm/DerivedTypes.h" #include "llvm/InstrTypes.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/BasicBlock.h" #include "llvm/Support/Debug.h" #include "llvm/S...
2008 Mar 26
1
[LLVMdev] PATCH: Use size reduction -- wave1
.../use- diet . This is what it printed on the console: U include/llvm/BasicBlock.h U include/llvm/GlobalVariable.h U include/llvm/Support/LLVMBuilder.h U include/llvm/Instructions.h U include/llvm/GlobalAlias.h U include/llvm/Constants.h U include/llvm/User.h U include/llvm/InstrTypes.h U include/llvm/Function.h U tools/bugpoint/CrashDebugger.cpp U tools/bugpoint/Miscompilation.cpp U lib/Analysis/ScalarEvolutionExpander.cpp U lib/CodeGen/ShadowStackCollector.cpp U lib/CodeGen/IntrinsicLowering.cpp U lib/Linker/LinkModules.cpp U lib/Target/X86/X86TargetAs...