search for: codegendagpatterns

Displaying 20 results from an estimated 97 matches for "codegendagpatterns".

2013 Jan 04
2
[LLVMdev] TableGen patterns with multiple outputs
...7 "begin() + idx < end()") at Signals.inc:358 #5 0x00000001000ca394 in llvm::SmallVectorTemplateCommon<llvm::EEVT::TypeSet, void>::operator[] (this=0x10384fed0, idx=1) at SmallVector.h:139 #6 0x00000001000c965b in llvm::TreePatternNode::getExtType (this=0x10384fed0, ResNo=1) at CodeGenDAGPatterns.h:349 #7 0x00000001000bd615 in llvm::CodeGenDAGPatterns::ParseInstructions (this=0x7fff5fbff0b0) at /Users/jholewinski/projects/llvm/src/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:2782 #8 0x00000001000b7143 in llvm::CodeGenDAGPatterns::CodeGenDAGPatterns (this=0x7fff5fbff0b0, R=@0x7fff5fbff670) a...
2013 Jan 07
2
[LLVMdev] TableGen patterns with multiple outputs
...; end()") at Signals.inc:358 > #5 0x00000001000ca394 in > llvm::SmallVectorTemplateCommon<llvm::EEVT::TypeSet, void>::operator[] > (this=0x10384fed0, idx=1) at SmallVector.h:139 > #6 0x00000001000c965b in llvm::TreePatternNode::getExtType > (this=0x10384fed0, ResNo=1) at CodeGenDAGPatterns.h:349 > #7 0x00000001000bd615 in llvm::CodeGenDAGPatterns::ParseInstructions > (this=0x7fff5fbff0b0) at > /Users/jholewinski/projects/llvm/src/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:2782 > #8 0x00000001000b7143 in llvm::CodeGenDAGPatterns::CodeGenDAGPatterns > (this=0x7fff5fbff...
2013 Jan 07
0
[LLVMdev] TableGen patterns with multiple outputs
...gin() + idx < end()") at Signals.inc:358 > #5 0x00000001000ca394 in llvm::SmallVectorTemplateCommon<llvm::EEVT::TypeSet, void>::operator[] (this=0x10384fed0, idx=1) at SmallVector.h:139 > #6 0x00000001000c965b in llvm::TreePatternNode::getExtType (this=0x10384fed0, ResNo=1) at CodeGenDAGPatterns.h:349 > #7 0x00000001000bd615 in llvm::CodeGenDAGPatterns::ParseInstructions (this=0x7fff5fbff0b0) at /Users/jholewinski/projects/llvm/src/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:2782 > #8 0x00000001000b7143 in llvm::CodeGenDAGPatterns::CodeGenDAGPatterns (this=0x7fff5fbff0b0, R=@0x7fff5...
2013 Jan 07
0
[LLVMdev] TableGen patterns with multiple outputs
...idx < end()") at Signals.inc:358 >> #5 0x00000001000ca394 in llvm::SmallVectorTemplateCommon<llvm::EEVT::TypeSet, void>::operator[] (this=0x10384fed0, idx=1) at SmallVector.h:139 >> #6 0x00000001000c965b in llvm::TreePatternNode::getExtType (this=0x10384fed0, ResNo=1) at CodeGenDAGPatterns.h:349 >> #7 0x00000001000bd615 in llvm::CodeGenDAGPatterns::ParseInstructions (this=0x7fff5fbff0b0) at /Users/jholewinski/projects/llvm/src/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:2782 >> #8 0x00000001000b7143 in llvm::CodeGenDAGPatterns::CodeGenDAGPatterns (this=0x7fff5fbff0b0, R=...
2019 Nov 20
4
Tablegen PAT limitation?
Hi, The full trace stack: Type set is empty for each HW mode: possible type contradiction in the pattern below (use -print-records with llvm-tblgen to see all expanded records). vtInt: (vt:{ *:[Other] }) UNREACHABLE executed at /home/nancy/work/rpp_clang/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:824! [ 85%] Building X86GenEVEX2VEXTables.inc... &nbsp;#0 0x000000000081b9b5 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;) /home/nancy/work/rpp_clang/llvm/lib/Support/Unix/Signals.inc:495:0 &nbsp;#1 0x000000000081ba48 PrintStackTraceSignalHandler(void*) /home/nancy/work/rpp_cla...
2008 Feb 09
4
[LLVMdev] tblgen and sign-extended constants too large for type
Question: How hard should tblgen try to fit constants into a particular type? My case is an xor with i8 immediate where I'm using 0xff in as the immediate value. 0xff should fit into i8 if treated as unsigned, but CodeGenDAGPatterns.cpp assumes that any and all integers less than 32-bits are signed. Should tblgen try to see if the sign-extended version of the constant could fit into the type, and failing that, try the unsigned version: Index: utils/TableGen/CodeGenDAGPatterns.cpp =============================================...
2008 Jun 26
0
[LLVMdev] LLVM on OpenBSD
...rew? FWIW gcc-4.2 shows the same error as 3.3.5 (see below). Here is a backtrace (courtesy of Andrew) of the tblgen run, which aborts about 50% of the time when it feels like it: #1 0x04e521a3 in abort () at /usr/src/lib/libc/stdlib/abort.c:68 #2 0x04df29d7 in __assert2 (file=0x3c0018e1 "CodeGenDAGPatterns.cpp", line=934, func=0x3c0020a6 "ApplyTypeConstraints", failedexpr=0x3c002400 "getOperator()->isSubClassOf(\"SDNodeXForm\") && \"Unknown node type!\"") at /usr/src/lib/libc/gen/assert.c:52 #3 0x1c0d0bcd in llvm::TreePatternNode::ApplyTyp...
2019 Nov 21
2
Tablegen PAT limitation?
...full trace stack: Type set is empty for each HW mode: possible type contradiction in the pattern below (use -print-records with llvm-tblgen to see all expanded records). vtInt: &nbsp; (vt:{ *:[Other] }) UNREACHABLE executed at /home/nancy/work/rpp_clang/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:824! [ 85%] Building X86GenEVEX2VEXTables.inc... &nbsp;#0 0x000000000081b9b5 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;) /home/nancy/work/rpp_clang/llvm/lib/Support/Unix/Signals.inc:495:0 &nbsp;#1 0x000000000081ba48 PrintStackTraceSignalHandler(void*) /home/nan...
2019 Nov 22
2
Tablegen PAT limitation?
...full trace stack: Type set is empty for each HW mode: possible type contradiction in the pattern below (use -print-records with llvm-tblgen to see all expanded records). vtInt: &nbsp; (vt:{ *:[Other] }) UNREACHABLE executed at /home/nancy/work/rpp_clang/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:824! [ 85%] Building X86GenEVEX2VEXTables.inc... &nbsp;#0 0x000000000081b9b5 llvm::sys::PrintStackTrace(llvm::raw_ostream&amp;) /home/nancy/work/rpp_clang/llvm/lib/Support/Unix/Signals.inc:495:0 &nbsp;#1 0x000000000081ba48 PrintStackTraceSignalHandler(void*) /home/nan...
2008 Jun 10
6
[LLVMdev] LLVM on OpenBSD
Hi there, I am a student considering a compiler design based dissertation with llvm. I am having problems building llvm on OpenBSD-current. I hope to make a port of llvm for OpenBSD once I have figured out how to build it. Observe: llvm[3]: Compiling Deserialize.cpp for Release build In file included from /home/edd/llvm/llvm-2.3/include/llvm/Bitcode/BitstreamRead er.h:18, from
2019 Nov 25
2
Tablegen PAT limitation?
...ain, crash in the same place. Type set is empty for each HW mode: possible type contradiction in the pattern below (use -print-records with llvm-tblgen to see all expanded records). vtInt: &nbsp; (vt:{ *:[Other] }) UNREACHABLE executed at /home/nancy/work/rpp_clang/llvm/utils/TableGen/CodeGenDAGPatterns.cpp:824! ------------------&nbsp;Original&nbsp;------------------ From:&nbsp;"Krzysztof Parzyszek"<kparzysz at quicinc.com&gt;; Date:&nbsp;Fri, Nov 22, 2019 09:51 PM To:&nbsp;"Celine"<595602881 at qq.com&gt;;"llvm-dev"<llvm-dev at...
2019 Sep 10
2
tablegen exponential behavior
...lvm-tblgen llvm-tblgen [.] llvm::TableGenMain + 99.85% 0.00% llvm-tblgen llvm-tblgen [.] (anonymous namespace)::LLVMTableGenMain + 99.85% 0.00% llvm-tblgen llvm-tblgen [.] llvm::EmitDAGISel + 99.85% 0.00% llvm-tblgen llvm-tblgen [.] llvm::CodeGenDAGPatterns::CodeGenDAGPatterns + 99.46% 98.01% llvm-tblgen llvm-tblgen [.] llvm::CodeGenDAGPatterns::GenerateVariants 0.38% 0.00% llvm-tblgen llvm-tblgen [.] GenerateVariantsOf Sebastian
2009 Apr 15
2
[LLVMdev] Error w/ Tablegen + Intrinsics
...N4.getNode()->getValueType(0) == MVT::f32) { SDNode *Result = Emit_28(N, AMDIL::MACRO_FMA_f32, MVT::f32); return Result; } } However, when MACRO_FMA is called, Tmp0->getZExtValue() returns 102! The section of code where this is probably wrong is: CodeGenDAGPatterns.cpp:1238 unsigned IID = getDAGPatterns().getIntrinsicID(Operator)+1; Or here: CodeGenDAGPatterns.h:524 const CodeGenIntrinsic &getIntrinsicInfo(unsigned IID) const { assert(IID-1 < Intrinsics.size() && "Bad intrinsic ID!"); return Intrinsics[IID-1]; } Th...
2020 Nov 18
2
Work on DAG Isel for TableGen and compiler
Are you talking about the type checking done in CodeGenDAGPatterns.cpp? Is it easy to post an example? At 11/18/2020 01:55 PM, Thomas Lively wrote: >Hi Paul, > >I think this would be time well spent. At least in the WebAssembly backend, the vast majority of our ISel work is still done with DAG ISel. I know this is different from the performance work you...
2020 Nov 18
2
Work on DAG Isel for TableGen and compiler
Given that I'm only somewhat up-to-speed on the DAG ISel scheme and not much at all on the Global ISel scheme, I'm tempted to work on the former and then the latter. So I'll look at the CodeGenDAGPatterns messages first. Then I will take a look at Global ISel. Matt: Can you suggest one or two things about Global ISel that could use some work? I won't get to it quickly, but it will give me something to focus on. At 11/18/2020 04:17 PM, Thomas Lively wrote: >Yes, the CodeGenDAGPatterns is ex...
2010 Aug 19
2
[LLVMdev] Creating a tablegen backend
Hello. I would like to create a new backend for tablegen that produces code in an generic assembly language (not for a real processor). The documentation page for this says "ToDo", but I think what I want to do is something similar to CodeGenDAGPatterns::ParseInstructions() in CodeGenDAGPatterns.cpp. Is this even vaguely correct? Any pointers would be appreciated. I'm specifically interested in translating X86 into this other language, but getting other processors for free in the process would be great. -- Durward McDonell durward.mcdonell...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...eb 8, 2008, at 6:43 PM, Scott Michel wrote: > Question: How hard should tblgen try to fit constants into a > particular > type? > > My case is an xor with i8 immediate where I'm using 0xff in as the > immediate value. 0xff should fit into i8 if treated as unsigned, but > CodeGenDAGPatterns.cpp assumes that any and all integers less than > 32-bits are signed. > > Should tblgen try to see if the sign-extended version of the constant > could fit into the type, and failing that, try the unsigned version: > > Index: utils/TableGen/CodeGenDAGPatterns.cpp > ============...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...eb 8, 2008, at 6:43 PM, Scott Michel wrote: > Question: How hard should tblgen try to fit constants into a > particular > type? > > My case is an xor with i8 immediate where I'm using 0xff in as the > immediate value. 0xff should fit into i8 if treated as unsigned, but > CodeGenDAGPatterns.cpp assumes that any and all integers less than > 32-bits are signed. > > Should tblgen try to see if the sign-extended version of the constant > could fit into the type, and failing that, try the unsigned version: > > Index: utils/TableGen/CodeGenDAGPatterns.cpp > ============...
2009 Apr 15
0
[LLVMdev] Error w/ Tablegen + Intrinsics
...eType(0) == MVT::f32) { > SDNode *Result = Emit_28(N, AMDIL::MACRO_FMA_f32, MVT::f32); > return Result; > } > } > > However, when MACRO_FMA is called, Tmp0->getZExtValue() returns 102! > > The section of code where this is probably wrong is: > CodeGenDAGPatterns.cpp:1238 unsigned IID = > getDAGPatterns().getIntrinsicID(Operator)+1; > Or here: > CodeGenDAGPatterns.h:524 > const CodeGenIntrinsic &getIntrinsicInfo(unsigned IID) const { > assert(IID-1 < Intrinsics.size() && "Bad intrinsic ID!"); > return Int...
2008 Jun 12
1
[LLVMdev] LLVM on OpenBSD
Hello, Edd > > llvm[3]: Building ARM.td instruction selector implementation with tblgen > > assertion "getOperator()->isSubClassOf("SDNodeXForm") && "Unknown node > > type!"" failed: file "CodeGenDAGPatterns.cpp", line 949, function > > "ApplyTypeConstraints" Could you please try with gcc 4.x and check, whether this problem exists for you or not. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.