Questions tagged [codegen]

Use codegen for questions related to language features or tools which facilitate translating code between languages or creating code from metadata

References

161 questions
0
votes
1 answer

Debug output for instruction selection by pattern matching

Running llc --debug, the output for instruction selection pattern matching is quite unreadable on its own. Here's some example output: ISEL: Starting pattern match on root node: t7: i8,ch = load t0, t2, undef:i16 Initial…
Cactus
  • 25,576
  • 9
  • 60
  • 130
0
votes
1 answer

Are MachineBasicBlocks supposed to implicitly fall through to their successors?

I'm debugging an LLVM target backend, and I am chasing a problem where a certain basic block ends up jumping to "nothing", i.e. just after the end of the function, when compiled with optimizations turned on. One thing I noticed is that after…
Cactus
  • 25,576
  • 9
  • 60
  • 130
0
votes
0 answers

Subscripting into an mxArray is not supported

I want to generate mex function using Matlab coder: MEX function. In my code I used dir function to get the information of the images with png format like below: %#codegen coder.inline('never') coder.extrinsic('dir') imgePath ='D:/images/'; images =…
0
votes
1 answer

Allow non-ssl connections: javax.net.ssl.SSLHandshakeException: Handshake failed

Using java client generated codegen, I am receiving a handshake failed when trying to connect to my localhost which isn't SSL. What do I specify in the Android code to allow? The codegen is also using (okhttp:2.7.5): 04-13 09:21:28.874…
Tim Nuwin
  • 2,369
  • 1
  • 23
  • 58
0
votes
1 answer

Ignore service implementation file while executing swagger code gen

I am new to swagger. I am trying to implement my rest services using jersy and documentation using swagger. Once model is generated using code gen and added logic in my service implementation class. Now if I want to regenerate model, is there any…
Ajit Kalyan
  • 29
  • 1
  • 8
0
votes
1 answer

codegen error: The left-hand side has been constrained to be non-complex, but the right-hand side is complex

I am new to matlab and am trying to compile legacy matlab code into C. I come across the following error when doing so: ??? The left-hand side has been constrained to be non-complex, but the right-hand side is complex. To correct this problem,…
noobuntu
  • 803
  • 1
  • 11
  • 35
0
votes
1 answer

pub build throws errors in case of angular2 dart codegen

For a while I was under the impression that the Angular2 Dart codegen was the way forward with the development. Unfortunately it seems that as of late I can't use codegen anymore. Here is my pubspec.yaml which does not work and produces errors. By…
Fabian
  • 4,806
  • 3
  • 26
  • 41
0
votes
1 answer

Slick implicit parameter 'tables' with generated tables

The simple version What's the preferred way to import and use generated Slick tables? The detailed version and what I've tried I used Slick 3.1.1 codegen to generate a Tables.scala from a MySQL (MariaDB) schema. Tables.scala begins with this: //…
0
votes
1 answer

Xcode 8 Codegen feature generates nothing

I am trying to setup codegen feature in one of my existing project and I have no success with any code generation. Here goes my setup. I have a Foo entity with a bar attribute. Codegen setup for Class Definition: Language for Code Generation setup…
Viktor Kucera
  • 5,779
  • 2
  • 30
  • 38
0
votes
1 answer

Context sensitve code generation with grako

I'm in a situation where I've built an abstract syntax tree (AST) with grako's model builder semantics. Now I need to generate javascript code from that AST. I have defined several templates, but I realized not all cases can be handled with simple…
G.G
  • 615
  • 4
  • 12
0
votes
1 answer

CXF codegen-plugin not working

I'm trying to get the cxf-codegen-plugin to generate sources from my wsdl file. But Nothing happens when i execute mvn generate-source with eclipse luna. It looks like plugin itself not configured properly. My pom.xml
Gnani
  • 109
  • 8
0
votes
0 answers

Splitting a monolithic code based on a condition dispersed throughout the code

We use the same monolithic code for two different contexts based on an environment variable. For example, each class is as follows, where global variable context is assigned "A" or "B" based on an environment variable at initialization: class Demo …
claudius
  • 890
  • 8
  • 20
0
votes
2 answers

run slick-codegen-example with current versions

I am currently making my first steps with Slick. I am particularly interested in codegen. To get started I installed Typesafe Activator (activator-dist-1.3.7), started the Activator ui, created a new project from template "Using Slicks default code…
Marcus
  • 1,881
  • 2
  • 17
  • 33
0
votes
1 answer

Efficient way to access a property of a class by the string name

I want access to a property value by its name. The only way i know it's by reflection with a code like this: public static object GetPropValue(object src, string propName) { return src.GetType().GetProperty(propName).GetValue(src, null); …
Gianluigi Liguori
  • 311
  • 1
  • 5
  • 12
0
votes
1 answer

echoprint fingerprint generation Windows vs Linux

I used to generate fingerprint for an audiofile in Windows 7-64bit and on Ubuntu but fingerprint codes doesnt same (i mean the code field. ). I used compiled Windows source. does it supposed to be not same or i did something…
regata
  • 21
  • 1
  • 5
1 2 3
10
11